mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
a8bc6c780e
bfd/ * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit for R_ARM_REL32. gas/ * config/tc-arm.c (arm_optimize_expr): New function. * config/tc-arm.h (md_optimize_expr): Define (arm_optimize_expr): Add prototype. (TC_FORCE_RELOCATION_SUB_SAME): Define. ld/testsuite/ * ld-arm/arm-elf.exp: Add thumb-rel32. * ld-arm/thumb-rel32.d: New test. * ld-arm/thumb-rel32.s: New test.
19 lines
307 B
ArmAsm
19 lines
307 B
ArmAsm
.text
|
|
.arch armv4t
|
|
.global _start
|
|
.type _start, %function
|
|
.thumb_func
|
|
_start:
|
|
.word bar - .
|
|
.word _start - .
|
|
.byte 0
|
|
.4byte (_start - .) + 1
|
|
.byte 0, 0, 0
|
|
.section .after, "ax", %progbits
|
|
.global bar
|
|
.type bar, %function
|
|
.thumb_func
|
|
bar:
|
|
.word 0
|
|
.ident "GCC: (GNU) 4.1.0 (CodeSourcery ARM)"
|