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.
This commit is contained in:
Alan Modra 2017-01-02 22:28:29 +10:30
parent 5b86074c4a
commit 7bd9df3bcd
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-01-02 Alan Modra <amodra@gmail.com>
* elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
.PARISC.unwind section.
2017-01-02 Alan Modra <amodra@gmail.com>
PR ld/20989

View 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;
}
}