* elf32-hppa.c (final_link_relocate): Branch to .+8 for
calls to undefined weak symbols.
This commit is contained in:
parent
d5166ae11e
commit
db20fd7654
|
@ -1,3 +1,8 @@
|
||||||
|
2001-04-30 Alan Modra <amodra@one.net.au>
|
||||||
|
|
||||||
|
* elf32-hppa.c (final_link_relocate): Branch to .+8 for
|
||||||
|
calls to undefined weak symbols.
|
||||||
|
|
||||||
2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
|
2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
|
* elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
|
||||||
|
|
|
@ -3271,10 +3271,13 @@ final_link_relocate (input_section, contents, rel, value, hplink, sym_sec, h)
|
||||||
else if (sym_sec == NULL && h != NULL
|
else if (sym_sec == NULL && h != NULL
|
||||||
&& h->elf.root.type == bfd_link_hash_undefweak)
|
&& h->elf.root.type == bfd_link_hash_undefweak)
|
||||||
{
|
{
|
||||||
/* It's OK if undefined weak. Make undefined weak
|
/* It's OK if undefined weak. Calls to undefined weak
|
||||||
branches go nowhere. */
|
symbols behave as if the "called" function
|
||||||
|
immediately returns. We can thus call to a weak
|
||||||
|
function without first checking whether the function
|
||||||
|
is defined. */
|
||||||
value = location;
|
value = location;
|
||||||
addend = 0;
|
addend = 8;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return bfd_reloc_notsupported;
|
return bfd_reloc_notsupported;
|
||||||
|
|
Loading…
Reference in New Issue