* elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
authorDaniel Jacobowitz <drow@false.org>
Fri, 23 Jan 2004 16:51:48 +0000 (16:51 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 23 Jan 2004 16:51:48 +0000 (16:51 +0000)
change.

bfd/ChangeLog
bfd/elf32-arm.h

index c1c024c5e4ef4475434c54b65723aa7882866e43..00748f33cc4d85d1dbe3054f1db85c712721e773 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
+
+       * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
+       change.
+
 2004-01-21  Tom Rix  <tcrix@worldnet.att.net>
 
        * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
index 369bbe322802b87f5cea517e996b72b5a7e167bf..7c284c1747468d1e431a8cdec344bc492f8d0eb4 100644 (file)
@@ -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
This page took 0.030881 seconds and 4 git commands to generate.