diff options
author | Alan Modra <amodra@gmail.com> | 2017-01-02 22:28:29 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-01-02 22:29:09 +1030 |
commit | 7bd9df3bcdb1f736b696566b6142cb94d6b9b0d9 (patch) | |
tree | 425a75d0c0274acfdaf46e6f56c973b643a5092c /bfd/elf-hppa.h | |
parent | 5b86074c4a84e32ca55a6c72c5fca45d97dc9374 (diff) | |
download | gdb-7bd9df3bcdb1f736b696566b6142cb94d6b9b0d9.zip gdb-7bd9df3bcdb1f736b696566b6142cb94d6b9b0d9.tar.gz gdb-7bd9df3bcdb1f736b696566b6142cb94d6b9b0d9.tar.bz2 |
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.
Diffstat (limited to 'bfd/elf-hppa.h')
-rw-r--r-- | bfd/elf-hppa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h index 3871980..b1c959e 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; } } |