aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/use-thumb-lib.s
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-06-20 13:55:08 +0000
committerPaul Brook <paul@codesourcery.com>2006-06-20 13:55:08 +0000
commitadd68859a914922df926ec91edeb3282dcf86cd4 (patch)
tree5efe55846682f595a2ca55454d55ea3b46e176be /ld/testsuite/ld-arm/use-thumb-lib.s
parented66ec07d2730c3472f9b8c6e11bfe3cdd27329a (diff)
downloadgdb-add68859a914922df926ec91edeb3282dcf86cd4.zip
gdb-add68859a914922df926ec91edeb3282dcf86cd4.tar.gz
gdb-add68859a914922df926ec91edeb3282dcf86cd4.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-arm/use-thumb-lib.s')
-rw-r--r--ld/testsuite/ld-arm/use-thumb-lib.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/use-thumb-lib.s b/ld/testsuite/ld-arm/use-thumb-lib.s
new file mode 100644
index 0000000..07a7f57
--- /dev/null
+++ b/ld/testsuite/ld-arm/use-thumb-lib.s
@@ -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)"