diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-03-28 15:01:49 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-03-28 15:01:49 -0700 |
commit | 738c18312e0db36dce5e1cd2cddaf66eb8947f1a (patch) | |
tree | 550a54d2aa329e2a3becc63d99ea9c2c308d9839 | |
parent | 61651c110e4271cdea4ae153813898684bf9f0f8 (diff) |
elflint: Accept SHF_INFO_LINK for reloc sections.
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/elflint.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 30be3e13..642df1b2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-03-28 Roland McGrath <roland@hack.frob.com> + + * elflint.c (special_sections): Accept SHF_INFO_LINK for reloc sections. + 2012-03-28 Mark Wielaard <mjw@redhat.com> * readelf.c (print_debug_abbrev_section): Check there is Dwarf diff --git a/src/elflint.c b/src/elflint.c index abca8b75..a03caac1 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -3357,8 +3357,8 @@ static const struct { ".note", 6, SHT_NOTE, atleast, 0, SHF_ALLOC }, { ".plt", 5, SHT_PROGBITS, unused, 0, 0 }, // XXX more tests { ".preinit_array", 15, SHT_PREINIT_ARRAY, exact, SHF_ALLOC | SHF_WRITE, 0 }, - { ".rela", 5, SHT_RELA, atleast, 0, SHF_ALLOC }, // XXX more tests - { ".rel", 4, SHT_REL, atleast, 0, SHF_ALLOC }, // XXX more tests + { ".rela", 5, SHT_RELA, atleast, 0, SHF_ALLOC | SHF_INFO_LINK }, // XXX more tests + { ".rel", 4, SHT_REL, atleast, 0, SHF_ALLOC | SHF_INFO_LINK }, // XXX more tests { ".rodata", 8, SHT_PROGBITS, atleast, SHF_ALLOC, SHF_MERGE | SHF_STRINGS }, { ".rodata1", 9, SHT_PROGBITS, atleast, SHF_ALLOC, SHF_MERGE | SHF_STRINGS }, { ".shstrtab", 10, SHT_STRTAB, exact, 0, 0 }, |