PR ld/12614
* emultempl/pe.em (_after_open): Correctly check whether symbol is in undef list.
This commit is contained in:
parent
0827f9a64f
commit
e0605dbe1c
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
|
||||
|
||||
PR ld/12614
|
||||
* emultempl/pe.em (_after_open): Correctly check whether symbol is
|
||||
in undef list.
|
||||
|
||||
2011-04-26 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
* scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
|
||||
|
|
|
@ -1590,8 +1590,10 @@ gld_${EMULATION_NAME}_after_open (void)
|
|||
/* If the symbol in the stub section has no other
|
||||
undefined references, exclude the stub section
|
||||
from the final link. */
|
||||
if (blhe && (blhe->type == bfd_link_hash_defined)
|
||||
&& (blhe->u.undef.next == NULL))
|
||||
if (blhe != NULL
|
||||
&& blhe->type == bfd_link_hash_defined
|
||||
&& blhe->u.undef.next == NULL
|
||||
&& blhe != link_info.hash->undefs_tail)
|
||||
stub_sec->flags |= SEC_EXCLUDE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue