]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elflint: Accept SHF_INFO_LINK for reloc sections.
authorRoland McGrath <roland@hack.frob.com>
Wed, 28 Mar 2012 22:01:49 +0000 (15:01 -0700)
committerRoland McGrath <roland@hack.frob.com>
Wed, 28 Mar 2012 22:01:49 +0000 (15:01 -0700)
src/ChangeLog
src/elflint.c

index 30be3e1327b37ab2029f93a58ca38f6bb7447f63..642df1b267b7f074e802068f8ef1dc44dd4cd365 100644 (file)
@@ -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
index abca8b755cebffcc8a3c0ffb8c74ff7acd19740d..a03caac1deaa65b2bb3323889b598964b519701e 100644 (file)
@@ -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 },