mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
Exclude linker created file from dynobj
Some ELF targets create a "linker stubs" fake bfd. Don't use it to set dynobj. * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker created file from dynobj.
This commit is contained in:
parent
6cd255ca1f
commit
6645479e9d
@ -1,3 +1,8 @@
|
||||
2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
|
||||
created file from dynobj.
|
||||
|
||||
2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
|
||||
|
@ -213,7 +213,8 @@ _bfd_elf_link_create_dynstrtab (bfd *abfd, struct bfd_link_info *info)
|
||||
{
|
||||
bfd *ibfd;
|
||||
for (ibfd = info->input_bfds; ibfd; ibfd = ibfd->link.next)
|
||||
if ((ibfd->flags & (DYNAMIC | BFD_PLUGIN)) == 0)
|
||||
if ((ibfd->flags
|
||||
& (DYNAMIC | BFD_LINKER_CREATED | BFD_PLUGIN)) == 0)
|
||||
{
|
||||
abfd = ibfd;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user