+2014-03-20 Will Newton <will.newton@linaro.org>
+
+ PR ld/16715
+ * elf32-arm.c (elf32_arm_check_relocs): Set
+ pointer_equality_needed for absolute references within
+ executable links.
+ (elf32_arm_finish_dynamic_symbol): Set st_value to zero
+ unless pointer_equality_needed is set.
+
2014-03-19 Nick Clifton <nickc@redhat.com>
* peXXigen.c (rsrc_process_section): Add code to scan input
/* Fall through. */
case R_ARM_ABS32:
case R_ARM_ABS32_NOI:
+ if (h != NULL && info->executable)
+ {
+ h->pointer_equality_needed = 1;
+ }
+ /* Fall through. */
case R_ARM_REL32:
case R_ARM_REL32_NOI:
case R_ARM_MOVW_PREL_NC:
Otherwise, the PLT entry would provide a definition for
the symbol even if the symbol wasn't defined anywhere,
and so the symbol would never be NULL. */
- if (!h->ref_regular_nonweak)
+ if (!h->ref_regular_nonweak || !h->pointer_equality_needed)
sym->st_value = 0;
}
else if (eh->is_iplt && eh->plt.noncall_refcount != 0)
+2014-03-20 Will Newton <will.newton@linaro.org>
+
+ * ld-arm/ifunc-14.rd: Update symbol values.
+
2014-03-19 Nick Clifton <nickc@redhat.com>
* config/default.exp (ASFLAGS): For the RX target add:
Relocation section '\.rel\.plt' at offset 0x8020 contains 2 entries:
Offset Info Type Sym\.Value Sym\. Name
-0001100c ......16 R_ARM_JUMP_SLOT 00009014 f2t
-00011010 ......16 R_ARM_JUMP_SLOT 00009020 f2
+0001100c ......16 R_ARM_JUMP_SLOT 00000000 f2t
+00011010 ......16 R_ARM_JUMP_SLOT 00000000 f2