aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-07-03 17:57:36 +0930
committerAlan Modra <amodra@gmail.com>2018-07-03 18:52:52 +0930
commitb8a6ced79668ec8af3180e50b76f7517ebbab0d9 (patch)
treed1eea4f9ae80bbf669ba5f268fb6e2bfb4b05847 /bfd/ChangeLog
parent8d2c8c3d17926826864f4b739362f66af547428f (diff)
downloadgdb-b8a6ced79668ec8af3180e50b76f7517ebbab0d9.zip
gdb-b8a6ced79668ec8af3180e50b76f7517ebbab0d9.tar.gz
gdb-b8a6ced79668ec8af3180e50b76f7517ebbab0d9.tar.bz2
Correct removal of .gnu.attributes
Setting SEC_EXCLUDE for empty .gnu.attributes is too late in the link process for the linker to remove the section. That must be done in bfd_elf_final_link, as we do for removed group sections. * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes sections.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b4dbd2e..d111645 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2018-07-03 Alan Modra <amodra@gmail.com>
+ * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes
+ sections.
+
+2018-07-03 Alan Modra <amodra@gmail.com>
+
* elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define.
* elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR.
* elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use