]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR25882, .gnu.attributes are not checked for shared libraries
authorAlan Modra <amodra@gmail.com>
Fri, 1 May 2020 05:53:17 +0000 (15:23 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 1 May 2020 06:02:36 +0000 (15:32 +0930)
commita8acd6eeb6dc2cc5460ece90f90ebe36b56b20ba
treedc423444c9904c1b3b24565174b690cff8e7486e
parent6b728d3286a6e073e8cbdb63600e421de4f32dad
PR25882, .gnu.attributes are not checked for shared libraries

This allows backend merge_private_bfd_data to examine shared library
e_flags and/or .gnu.attributes.  ARM and PowerPC have done so when
using ld.gold for a long time.

(The tic6x change below is dead code due to the earlier FIXME,
but this is probably one of the changes needed there.)

PR 25882
bfd/
* elf32-tic6x.c (elf32_tic6x_merge_attributes): Don't transfer
Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output.
ld/
* ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
shared libraries.
bfd/ChangeLog
bfd/elf32-tic6x.c
ld/ChangeLog
ld/ldlang.c