mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
da5938a216
* elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols. (elf32_arm_stub_add_mapping_symbol): Remove. (elf32_arm_add_stub): Don't generate mapping symbols. Change prototype. (elf32_arm_size_stubs): Use new elf32_arm_add_stub prototype. Don't generate thumb to arm glue for calls. (arm_map_one_stub): Define. (elf32_arm_output_arch_local_syms): Generate mapping symbols for long calls stubs. ld/testsuite/ * ld-arm/farcall-arm-arm.s: Force function type on 'bar'. * ld-arm/farcall-thumb-arm.s: Likewise. * ld-arm/farcall-thumb-arm-blx.d: Fix encoding. * ld-arm/farcall-thumb-arm.d: Likewise. * ld-arm/farcall-thumb-arm-blx-pic-veneer.d: Likewise. * ld-arm/arm-elf.exp (armelftests): Add farcall-mix, farcall-mix2, farcall-group-default, farcall-group-size2, farcall-section Ignore gas warnings in farcall-thumb-arm, farcall-thumb-arm-blx, farcall-thumb-arm-blx-pic-veneer.
21 lines
284 B
ArmAsm
21 lines
284 B
ArmAsm
@ Test to ensure that a ARM to ARM call exceeding 32Mb generates a stub.
|
|
|
|
.global _start
|
|
.syntax unified
|
|
|
|
@ We will place the section .text at 0x1000.
|
|
|
|
.text
|
|
|
|
_start:
|
|
bl bar
|
|
|
|
@ We will place the section .foo at 0x2001020.
|
|
|
|
.section .foo, "xa"
|
|
|
|
.type bar, %function
|
|
bar:
|
|
bx lr
|
|
|