This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_28-branch] Set SHF_INFO_LINK for .PARISC.unwind
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 3 Feb 2017 09:38:10 -0000
- Subject: [binutils-gdb/binutils-2_28-branch] Set SHF_INFO_LINK for .PARISC.unwind
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b9d4e9fdf8638a13b0ddaac25ac78379c9b444bd
commit b9d4e9fdf8638a13b0ddaac25ac78379c9b444bd
Author: Alan Modra <amodra@gmail.com>
Date: Fri Feb 3 16:49:02 2017 +1030
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:
---
bfd/ChangeLog | 5 +++++
bfd/elf-hppa.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e99e8ac..93806dc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-03 Alan Modra <amodra@gmail.com>
+
+ * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
+ .PARISC.unwind section.
+
2017-02-02 Hans-Peter Nilsson <hp@axis.com>
* elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
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;
}
}