From: Roland McGrath Date: Wed, 28 Mar 2012 22:01:49 +0000 (-0700) Subject: elflint: Accept SHF_INFO_LINK for reloc sections. X-Git-Tag: elfutils-0.154~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=738c18312e0db36dce5e1cd2cddaf66eb8947f1a;p=thirdparty%2Felfutils.git elflint: Accept SHF_INFO_LINK for reloc sections. --- diff --git a/src/ChangeLog b/src/ChangeLog index 30be3e132..642df1b26 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-03-28 Roland McGrath + + * elflint.c (special_sections): Accept SHF_INFO_LINK for reloc sections. + 2012-03-28 Mark Wielaard * readelf.c (print_debug_abbrev_section): Check there is Dwarf diff --git a/src/elflint.c b/src/elflint.c index abca8b755..a03caac1d 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 },