From 7bd9df3bcdb1f736b696566b6142cb94d6b9b0d9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 2 Jan 2017 22:28:29 +1030 Subject: [PATCH] Set SHF_INFO_LINK for .PARISC.unwind 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 | 5 +++++ bfd/elf-hppa.h | 1 + 2 files changed, 6 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c129543fd74..0db54c0993d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-01-02 Alan Modra + + * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for + .PARISC.unwind section. + 2017-01-02 Alan Modra PR ld/20989 diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h index 3871980d739..b1c959ea14c 100644 --- a/bfd/elf-hppa.h +++ b/bfd/elf-hppa.h @@ -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; } } -- 2.30.2