diff options
| author | Mark Wielaard <[email protected]> | 2009-09-21 16:47:07 -0700 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2009-09-21 16:47:07 -0700 |
| commit | c49d00afc4bda21181cd4237e67930f3f5228adf (patch) | |
| tree | a5e3afba10394a0205e5fd62bdb265073743edef /src/elflint.c | |
| parent | 0db61c724ece7b7d61a6fb50e7edbcb5e717d4af (diff) | |
Handle new .comment section flags.
Newer gcc+ld combinations use string merging in the .comment
section. Allow that in elflint.
Diffstat (limited to 'src/elflint.c')
| -rw-r--r-- | src/elflint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elflint.c b/src/elflint.c index f85d2864..12e7242f 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -785,7 +785,7 @@ section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have SHF_ if (ehdr->e_type == ET_REL) { /* For object files the symbol value must fall - into the section. */ + into the section. */ if (sym->st_value > destshdr->sh_size) ERROR (gettext ("\ section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section [%2d] '%s'\n"), @@ -3330,7 +3330,7 @@ static const struct { /* See figure 4-14 in the gABI. */ { ".bss", 5, SHT_NOBITS, exact, SHF_ALLOC | SHF_WRITE, 0 }, - { ".comment", 8, SHT_PROGBITS, exact, 0, 0 }, + { ".comment", 8, SHT_PROGBITS, atleast, 0, SHF_MERGE | SHF_STRINGS }, { ".data", 6, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE, 0 }, { ".data1", 7, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE, 0 }, { ".debug_str", 11, SHT_PROGBITS, exact_or_gnuld, SHF_MERGE | SHF_STRINGS, 0 }, |
