mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
2007-06-29 Paul Brook <paul@codesourcery.com>
* ld-arm/arm-elf.exp (armelftests): Add callweak. * ld-arm/callweak.d: New test. * ld-arm/callweak.s: New test.
This commit is contained in:
17
ld/testsuite/ld-arm/callweak.d
Normal file
17
ld/testsuite/ld-arm/callweak.d
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
.*: file format.*
|
||||||
|
|
||||||
|
Disassembly of section .far:
|
||||||
|
|
||||||
|
12340000 <[^>]*>:
|
||||||
|
12340000: eaffffff b 12340004 <[^>]*>
|
||||||
|
12340004: 0affffff beq 12340008 <[^>]*>
|
||||||
|
|
||||||
|
12340008 <[^>]*>:
|
||||||
|
12340008: e000 b.n 1234000c <[^>]*>
|
||||||
|
1234000a: bf00 nop
|
||||||
|
1234000c: 2000 movs r0, #0
|
||||||
|
1234000e: e000 b.n 12340012 <[^>]*>
|
||||||
|
12340010: bf00 nop
|
||||||
|
12340012: 4770 bx lr
|
||||||
|
|
16
ld/testsuite/ld-arm/callweak.s
Normal file
16
ld/testsuite/ld-arm/callweak.s
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.syntax unified
|
||||||
|
.weak bar
|
||||||
|
.section .far, "ax", %progbits
|
||||||
|
.global _start
|
||||||
|
.type _start, %function
|
||||||
|
_start:
|
||||||
|
bl bar
|
||||||
|
bleq bar
|
||||||
|
.thumb
|
||||||
|
.type foo, %function
|
||||||
|
.thumb_func
|
||||||
|
foo:
|
||||||
|
bl bar
|
||||||
|
movs r0, #0
|
||||||
|
bl bar
|
||||||
|
bx lr
|
Reference in New Issue
Block a user