diff options
| author | Mark Wielaard <[email protected]> | 2015-12-31 23:16:28 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-01-05 08:56:01 +0100 |
| commit | 77e1739fc53c4021f6172955b73b2dce252d0709 (patch) | |
| tree | cbf42b2d21ef0b21bf9b2a0f4327aa160c554a92 /src/elflint.c | |
| parent | 29ee512fb8a71b0d22065c369a2117ff758bdf5e (diff) | |
elflint: Add _edata and _end to the list of possibly dangling gnuld symbols.
gnuld might keep dangling/unused symbols around (see sourceware PR13621).
Add _edata (end of initialized data address) and _end (end of uninitialized
data address) to that list. They might have been added by gnuld even if
there is no such [un]initialized data. Also add the double underscore
variants which are used on some architectures.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/elflint.c')
| -rw-r--r-- | src/elflint.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/elflint.c b/src/elflint.c index 7d72a1f7..bb97f598 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -801,7 +801,11 @@ section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"), && strcmp (name, "__bss_start") != 0 && strcmp (name, "__bss_start__") != 0 && strcmp (name, "__TMC_END__") != 0 - && strcmp (name, ".TOC.") != 0)) + && strcmp (name, ".TOC.") != 0 + && strcmp (name, "_edata") != 0 + && strcmp (name, "__edata") != 0 + && strcmp (name, "_end") != 0 + && strcmp (name, "__end") != 0)) ERROR (gettext ("\ section [%2d] '%s': symbol %zu: st_value out of bounds\n"), idx, section_name (ebl, idx), cnt); |
