diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-01-23 16:51:48 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-01-23 16:51:48 +0000 |
commit | 4f199be3eb4eb5e1d130e2b8583fb9102d39ba39 (patch) | |
tree | 98e2782a895f3b024e5d792f046a13bb5b26dad9 /bfd/elf32-arm.h | |
parent | 2df149a4c0a6ae33b557598845e995c58fd2d884 (diff) | |
download | gdb-4f199be3eb4eb5e1d130e2b8583fb9102d39ba39.zip gdb-4f199be3eb4eb5e1d130e2b8583fb9102d39ba39.tar.gz gdb-4f199be3eb4eb5e1d130e2b8583fb9102d39ba39.tar.bz2 |
* elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
change.
Diffstat (limited to 'bfd/elf32-arm.h')
-rw-r--r-- | bfd/elf32-arm.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index 369bbe3..7c284c1 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -2945,10 +2945,11 @@ elf32_arm_check_relocs (abfd, info, sec, relocs) symbol local. */ if (ELF32_R_TYPE (rel->r_info) == R_ARM_PC24 || ELF32_R_TYPE (rel->r_info) == R_ARM_PLT32) - { - h->elf_link_hash_flags |= ELF_LINK_HASH_NEEDS_PLT; - h->plt.refcount += 1; - } + h->elf_link_hash_flags |= ELF_LINK_HASH_NEEDS_PLT; + + /* If we create a PLT entry, this relocation will reference + it, even if it's an ABS32 relocation. */ + h->plt.refcount += 1; } /* If we are creating a shared library, and this is a reloc |