mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
ppc32 merging of e_flags from dynamic objects
EF_PPC_RELOCATABLE and similar flags, if present in an input shared library, don't have any relevance as far as the output file is concerned. Currently, dynamic objects aren't seen in merge_private_bfd_data. This patch is in preparation for a change to that. PR 25882 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Ignore e_flags from shared libraries.
This commit is contained in:
parent
94a8e7b0ef
commit
91ed9b71fa
@ -1,3 +1,9 @@
|
||||
2020-05-01 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 25882
|
||||
* elf32-ppc.c (ppc_elf_merge_private_bfd_data): Ignore e_flags
|
||||
from shared libraries.
|
||||
|
||||
2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
|
||||
|
||||
* elf32-xtensa.c (relax_section): Don't negate diff_value for
|
||||
|
@ -3802,6 +3802,9 @@ ppc_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
|
||||
if (!ppc_elf_merge_obj_attributes (ibfd, info))
|
||||
return FALSE;
|
||||
|
||||
if ((ibfd->flags & DYNAMIC) != 0)
|
||||
return TRUE;
|
||||
|
||||
new_flags = elf_elfheader (ibfd)->e_flags;
|
||||
old_flags = elf_elfheader (obfd)->e_flags;
|
||||
if (!elf_flags_init (obfd))
|
||||
|
Loading…
Reference in New Issue
Block a user