mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 03:24:41 +08:00
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:
parent
5b86074c4a
commit
7bd9df3bcd
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user