mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +08:00
2006-06-19 Vladimir Prus <vladimir@codesourcery.com>
bfd/ * elf32-arm.c (elf32_arm_swap_symbol_out): Don't set low bit for undefined symbols. ld/testsuite * ld-arm/arm-elf.exp: New test. * ld-arm/use-thumb-lib.s: New file. * ld-arm/use-thumb-lib.sym: New file.
This commit is contained in:
25
ld/testsuite/ld-arm/use-thumb-lib.s
Normal file
25
ld/testsuite/ld-arm/use-thumb-lib.s
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
.cpu arm10tdmi
|
||||||
|
.fpu softvfp
|
||||||
|
.eabi_attribute 18, 4
|
||||||
|
.eabi_attribute 20, 1
|
||||||
|
.eabi_attribute 21, 1
|
||||||
|
.eabi_attribute 23, 3
|
||||||
|
.eabi_attribute 24, 1
|
||||||
|
.eabi_attribute 25, 1
|
||||||
|
.eabi_attribute 26, 2
|
||||||
|
.eabi_attribute 30, 6
|
||||||
|
.file "use_thumb_lib.c"
|
||||||
|
.text
|
||||||
|
.align 2
|
||||||
|
.global foo
|
||||||
|
.type foo, %function
|
||||||
|
foo:
|
||||||
|
@ args = 0, pretend = 0, frame = 0
|
||||||
|
@ frame_needed = 1, uses_anonymous_args = 0
|
||||||
|
mov ip, sp
|
||||||
|
stmfd sp!, {fp, ip, lr, pc}
|
||||||
|
sub fp, ip, #4
|
||||||
|
bl lib_func2
|
||||||
|
ldmfd sp, {fp, sp, pc}
|
||||||
|
.size foo, .-foo
|
||||||
|
.ident "GCC: (GNU) 4.1.0 (CodeSourcery ARM 2006q1-7)"
|
15
ld/testsuite/ld-arm/use-thumb-lib.sym
Normal file
15
ld/testsuite/ld-arm/use-thumb-lib.sym
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
Symbol table for image:
|
||||||
|
Num Buc: Value Size Type Bind Vis Ndx Name
|
||||||
|
11 0: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS _edata
|
||||||
|
10 0: 00000268 20 FUNC GLOBAL DEFAULT 6 foo
|
||||||
|
4 0: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__
|
||||||
|
12 1: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS _end
|
||||||
|
7 1: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__
|
||||||
|
5 1: 0000027c 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start
|
||||||
|
13 2: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS __data_start
|
||||||
|
9 2: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS __end__
|
||||||
|
8 2: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
|
||||||
|
6 2: 00000000 2 FUNC GLOBAL DEFAULT UND lib_func2
|
||||||
|
3 2: 0000830c 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__
|
||||||
|
2 2: 0000027c 0 NOTYPE GLOBAL DEFAULT ABS __exidx_end
|
Reference in New Issue
Block a user