]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elflint.c (check_symtab): Add __bss_start__ to the list of allowed symbols.
authorMark Wielaard <mjw@redhat.com>
Sun, 24 Feb 2013 21:58:49 +0000 (22:58 +0100)
committerMark Wielaard <mjw@redhat.com>
Sun, 24 Feb 2013 21:58:49 +0000 (22:58 +0100)
Some architectures (ARM) use __bss_start__ instead of __bss_start.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/elflint.c

index 7d7b66fad42493a46c5137fa1802ae68452790d3..6e219e613aa047ece733c3a4c8d814c32d2408a8 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-24  Mark Wielaard  <mjw@redhat.com>
+
+       * elflint.c (check_symtab): Add __bss_start__ to the list of symbols
+       allowed to have out of section values because of GNU ld bugs.
+
 2013-02-06  Mark Wielaard  <mjw@redhat.com>
 
        * elflint.c (check_symtab): Add __bss_start and __TMC_END__ to the
index bc5ed33d4c30f67ff4254683f1e500ab4dfc05b8..acd458b8cf0723a6c00a3a6a135df0dfcd6c1d23 100644 (file)
@@ -782,6 +782,7 @@ section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"),
                                  && strcmp (name, "__fini_array_start") != 0
                                  && strcmp (name, "__fini_array_end") != 0
                                  && strcmp (name, "__bss_start") != 0
+                                 && strcmp (name, "__bss_start__") != 0
                                  && strcmp (name, "__TMC_END__") != 0))
                            ERROR (gettext ("\
 section [%2d] '%s': symbol %zu: st_value out of bounds\n"),