]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Set SHF_INFO_LINK for .PARISC.unwind
authorAlan Modra <amodra@gmail.com>
Fri, 3 Feb 2017 06:19:02 +0000 (16:49 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 3 Feb 2017 09:37:46 +0000 (20:07 +1030)
This flag should be set for any section header using sh_info to
point to another section.

Fixes a readelf warning about an unexpected value in info field,
resulting in FAIL: Build warn libbar.so

* elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
.PARISC.unwind section.

bfd/ChangeLog
bfd/elf-hppa.h

index e99e8ac38631c96a37a43690a7b00d482ddcda6f..93806dc9c953acdb0a801ef7a545a0cebfb8c46c 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-03  Alan Modra  <amodra@gmail.com>
+
+       * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
+       .PARISC.unwind section.
+
 2017-02-02  Hans-Peter Nilsson  <hp@axis.com>
 
        * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
index 3871980d739f3a528f3a91a9e3f843a55d063c2f..b1c959ea14c31f884100e3a715f0c52543454db6 100644 (file)
@@ -1117,6 +1117,7 @@ elf_hppa_fake_sections (bfd *abfd, Elf_Internal_Shdr *hdr, asection *sec)
          if (asec->name && strcmp (asec->name, ".text") == 0)
            {
              hdr->sh_info = indx;
+             hdr->sh_flags |= SHF_INFO_LINK;
              break;
            }
        }