mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +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:
@ -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>
|
2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
|
* 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;
|
bfd *ibfd;
|
||||||
for (ibfd = info->input_bfds; ibfd; ibfd = ibfd->link.next)
|
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;
|
abfd = ibfd;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user