mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
bfd/ChangeLog:
2013-03-20 Will Newton <will.newton@linaro.org> * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a dynamic reloc for symbols with dynindx == -1. (allocate_dynrelocs_for_symbol): Avoid allocating space for a dynamic reloc for symbols with dynindx == -1.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2013-03-27 Will Newton <will.newton@linaro.org>
|
||||||
|
|
||||||
|
* elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
|
||||||
|
dynamic reloc for symbols with dynindx == -1.
|
||||||
|
(allocate_dynrelocs_for_symbol): Avoid allocating space for a
|
||||||
|
dynamic reloc for symbols with dynindx == -1.
|
||||||
|
|
||||||
2013-03-27 Will Newton <will.newton@linaro.org>
|
2013-03-27 Will Newton <will.newton@linaro.org>
|
||||||
|
|
||||||
* elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
|
* elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
|
||||||
|
@ -9139,7 +9139,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
|
|||||||
{
|
{
|
||||||
Elf_Internal_Rela outrel;
|
Elf_Internal_Rela outrel;
|
||||||
|
|
||||||
if (!SYMBOL_REFERENCES_LOCAL (info, h))
|
if (h->dynindx != -1 && !SYMBOL_REFERENCES_LOCAL (info, h))
|
||||||
{
|
{
|
||||||
/* If the symbol doesn't resolve locally in a static
|
/* If the symbol doesn't resolve locally in a static
|
||||||
object, we have an undefined reference. If the
|
object, we have an undefined reference. If the
|
||||||
@ -13274,7 +13274,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf)
|
|||||||
if ((tls_type & GOT_TLS_GD) && indx != 0)
|
if ((tls_type & GOT_TLS_GD) && indx != 0)
|
||||||
elf32_arm_allocate_dynrelocs (info, htab->root.srelgot, 1);
|
elf32_arm_allocate_dynrelocs (info, htab->root.srelgot, 1);
|
||||||
}
|
}
|
||||||
else if (!SYMBOL_REFERENCES_LOCAL (info, h))
|
else if (indx != -1 && !SYMBOL_REFERENCES_LOCAL (info, h))
|
||||||
{
|
{
|
||||||
if (htab->root.dynamic_sections_created)
|
if (htab->root.dynamic_sections_created)
|
||||||
/* Reserve room for the GOT entry's R_ARM_GLOB_DAT relocation. */
|
/* Reserve room for the GOT entry's R_ARM_GLOB_DAT relocation. */
|
||||||
|
Reference in New Issue
Block a user