469a34932a
bfd/ PR ld/17277 * elf32-arm.c (elf32_arm_check_relocs): Increment P->pc_count for all reloc types with pc_relative set in the howto, not just for R_ARM_REL32 and R_ARM_REL32_NOI. (allocate_dynrelocs_for_symbol): Update comment. (elf32_arm_gc_sweep_hook): For all reloc types with pc_relative set in the howto, set call_reloc_p and may_need_local_target_p but not may_become_dynamic_p; not only for R_ARM_REL32 and R_ARM_REL32_NOI. (elf32_arm_check_relocs): Likewise. ld/testsuite/ PR ld/17277 * ld-arm/pcrel-shared.s: New file. * ld-arm/pcrel-shared.rd: New file. * ld-arm/arm-elf.exp (armelftests_common): Add it.
16 lines
376 B
R
16 lines
376 B
R
Dynamic section at offset 0x[0-9a-f]+ contains \d+ entries:
|
|
\s+Tag\s+Type\s+Name/Value
|
|
\s*0x[0-9a-f]+ \(HASH\).*
|
|
\s*0x[0-9a-f]+ \(STRTAB\).*
|
|
\s*0x[0-9a-f]+ \(SYMTAB\).*
|
|
\s*0x[0-9a-f]+ \(STRSZ\).*
|
|
\s*0x[0-9a-f]+ \(SYMENT\).*
|
|
# Specifically want *not* to see here:
|
|
# (REL)
|
|
# (RELSZ)
|
|
# (RELENT)
|
|
# (TEXTREL)
|
|
#...
|
|
\s*0x[0-9a-f]+ \(NULL\).*
|
|
|
|
There are no relocations in this file\.
|