From: Alan Modra Date: Fri, 3 Feb 2017 06:19:02 +0000 (+1030) Subject: Set SHF_INFO_LINK for .PARISC.unwind X-Git-Tag: users/ARM/embedded-binutils-2_28-branch-2017q1~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9d4e9fdf8638a13b0ddaac25ac78379c9b444bd;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e99e8ac3863..93806dc9c95 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-02-03 Alan Modra + + * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for + .PARISC.unwind section. + 2017-02-02 Hans-Peter Nilsson * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused 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; } }