aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-02-03 16:49:02 +1030
committerAlan Modra <amodra@gmail.com>2017-02-03 20:07:46 +1030
commitb9d4e9fdf8638a13b0ddaac25ac78379c9b444bd (patch)
tree85d6457da977ca97876ede90b462a2ade520d694
parent4f73293264a46b8bd15c49ed86044b57f2531d8e (diff)
downloadgdb-b9d4e9fdf8638a13b0ddaac25ac78379c9b444bd.zip
gdb-b9d4e9fdf8638a13b0ddaac25ac78379c9b444bd.tar.gz
gdb-b9d4e9fdf8638a13b0ddaac25ac78379c9b444bd.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.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf-hppa.h1
2 files changed, 6 insertions, 0 deletions
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;
}
}