]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elflink.c
Correct removal of .gnu.attributes
authorAlan Modra <amodra@gmail.com>
Tue, 3 Jul 2018 08:27:36 +0000 (17:57 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 3 Jul 2018 09:22:52 +0000 (18:52 +0930)
commitb8a6ced79668ec8af3180e50b76f7517ebbab0d9
treed1eea4f9ae80bbf669ba5f268fb6e2bfb4b05847
parent8d2c8c3d17926826864f4b739362f66af547428f
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.
bfd/ChangeLog
bfd/elflink.c