mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
* elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
without a reloc when symbol visibilty makes a function local.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2001-09-28 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
|
||||
without a reloc when symbol visibilty makes a function local.
|
||||
|
||||
2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
|
||||
|
@ -1263,6 +1263,8 @@ allocate_dynrelocs (h, inf)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (1, info, h))
|
||||
{
|
||||
s = htab->splt;
|
||||
if (s == NULL)
|
||||
abort ();
|
||||
@ -1296,14 +1298,17 @@ allocate_dynrelocs (h, inf)
|
||||
abort ();
|
||||
s->_raw_size += 4;
|
||||
|
||||
if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (1, info, h))
|
||||
{
|
||||
/* We also need to make an entry in the .rel.plt section. */
|
||||
s = htab->srelplt;
|
||||
if (s == NULL)
|
||||
abort ();
|
||||
s->_raw_size += sizeof (Elf32_External_Rel);
|
||||
}
|
||||
else
|
||||
{
|
||||
h->plt.offset = (bfd_vma) -1;
|
||||
h->elf_link_hash_flags &= ~ELF_LINK_HASH_NEEDS_PLT;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user