2004-01-06 21:47:38 +00:00
|
|
|
|
bfd/
* elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
(elf32_arm_plt_thumb_stub): New.
(struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
and plt_got_offset.
(elf32_arm_link_hash_traverse): Fix typo.
(elf32_arm_link_hash_table): Add obfd.
(elf32_arm_link_hash_newfunc): Initialize new fields.
(elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
(elf32_arm_link_hash_table_create): Initialize obfd.
(record_arm_to_thumb_glue): Mark the glue as a local ARM function.
(record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
(bfd_elf32_arm_get_bfd_for_interworking): Verify that the
interworking BFD is not dynamic.
(bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
not emit glue for PLT references.
(elf32_arm_final_link_relocate): Handle Thumb functions. Do not
emit glue for PLT references. Support the Thumb PLT prefix.
(elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
plt_thumb_refcount.
(elf32_arm_check_relocs): Likewise.
(elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
plt_thumb_refcount.
(allocate_dynrelocs): Handle Thumb PLT references.
(elf32_arm_finish_dynamic_symbol): Likewise.
(elf32_arm_symbol_processing): New function.
(elf_backend_symbol_processing): Define.
opcodes/
* arm-dis.c (WORD_ADDRESS): Define.
(print_insn): Use it. Correct big-endian end-of-section handling.
gas/testsuite/
* gas/arm/mapping.d: Expect F markers for Thumb code.
* gas/arm/unwind.d: Update big-endian pattern.
ld/
* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
a dynamic object for stubs.
ld/testsuite/
* ld-arm/mixed-app.d, ld-arm/mixed-app.r, ld-arm/mixed-app.s,
ld-arm/mixed-app.sym, ld-arm/mixed-lib.d, ld-arm/mixed-lib.r,
ld-arm/mixed-lib.s, ld-arm/mixed-lib.sym, ld-arm/arm-dyn.ld,
ld-arm/arm-lib.ld: New files.
* ld-arm/arm-app-abs32.d, ld-arm/arm-app-abs32.r, ld-arm/arm-app.d,
ld-arm/arm-app.r, ld-arm/arm-lib-plt32.d, ld-arm/arm-lib-plt32.r,
ld-arm/arm-lib.d, ld-arm/arm-lib.r, ld-arm/arm-static-app.d,
ld-arm/arm-static-app.r: Update for big-endian.
* ld-arm/arm-elf.exp: Run the new tests.
2004-11-17 17:50:28 +00:00
|
|
|
tmpdir/arm-app: file format elf32-(little|big)arm
|
2012-06-13 14:15:59 +00:00
|
|
|
architecture: armv4t, flags 0x00000112:
|
2004-01-06 21:47:38 +00:00
|
|
|
EXEC_P, HAS_SYMS, D_PAGED
|
|
|
|
start address 0x.*
|
|
|
|
|
|
|
|
Disassembly of section .plt:
|
|
|
|
|
2014-03-27 13:54:03 +00:00
|
|
|
.* <lib_func1@plt-0x14>:
|
2007-04-21 19:44:40 +00:00
|
|
|
.*: e52de004 push {lr} ; \(str lr, \[sp, #-4\]!\)
|
2014-03-27 13:54:03 +00:00
|
|
|
.*: e59fe004 ldr lr, \[pc, #4\] ; .* <lib_func1@plt-0x4>
|
2004-01-06 21:47:38 +00:00
|
|
|
.*: e08fe00e add lr, pc, lr
|
|
|
|
.*: e5bef008 ldr pc, \[lr, #8\]!
|
|
|
|
.*: .*
|
2014-03-27 13:54:03 +00:00
|
|
|
.* <lib_func1@plt>:
|
2009-06-30 11:57:05 +00:00
|
|
|
.*: e28fc6.* add ip, pc, #.*
|
2004-01-06 21:47:38 +00:00
|
|
|
.*: e28cca.* add ip, ip, #.* ; 0x.*
|
2009-06-29 08:08:15 +00:00
|
|
|
.*: e5bcf.* ldr pc, \[ip, #.*\]!.*
|
2004-01-06 21:47:38 +00:00
|
|
|
Disassembly of section .text:
|
|
|
|
|
|
|
|
.* <_start>:
|
|
|
|
.*: e1a0c00d mov ip, sp
|
2007-04-21 19:44:40 +00:00
|
|
|
.*: e92dd800 push {fp, ip, lr, pc}
|
2004-01-06 21:47:38 +00:00
|
|
|
.*: eb000001 bl .* <app_func>
|
2007-04-21 19:44:40 +00:00
|
|
|
.*: e89d6800 ldm sp, {fp, sp, lr}
|
2004-01-06 21:47:38 +00:00
|
|
|
.*: e12fff1e bx lr
|
|
|
|
|
|
|
|
.* <app_func>:
|
|
|
|
.*: e1a0c00d mov ip, sp
|
2007-04-21 19:44:40 +00:00
|
|
|
.*: e92dd800 push {fp, ip, lr, pc}
|
2014-03-27 13:54:03 +00:00
|
|
|
.*: ebfffff4 bl .* <lib_func1@plt>
|
2007-04-21 19:44:40 +00:00
|
|
|
.*: e89d6800 ldm sp, {fp, sp, lr}
|
2004-01-06 21:47:38 +00:00
|
|
|
.*: e12fff1e bx lr
|
|
|
|
|
|
|
|
.* <app_func2>:
|
|
|
|
.*: e12fff1e bx lr
|