summaryrefslogtreecommitdiffstats
path: root/gold/testsuite/arm_abs_lib.s
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-02-12 05:51:32 +0000
committerDoug Kwan <dougkwan@google.com>2010-02-12 05:51:32 +0000
commite4782e838130706e2d2d53a9e3c29f71419863ae (patch)
tree06d8666079258a16b125509735d9c22f3a044b6f /gold/testsuite/arm_abs_lib.s
parentecc13e538fab510f27fb5de27f93b6be8aff983f (diff)
downloadppe42-binutils-e4782e838130706e2d2d53a9e3c29f71419863ae.tar.gz
ppe42-binutils-e4782e838130706e2d2d53a9e3c29f71419863ae.zip
2010-02-11 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::Scan::local): Fix bugs in relocation handling. (Target_arm::Scan::global): Ditto. Also remove a comment before the beginning of function. (Target_arm::Relocate::relocate): Remove error messages for MOVW_ABS and MOVT_ABS relocations. Those are non issued in scanning. Fix parameter is_32bit in calls to should_apply_static_reloc. * testsuite/Makefile.am (check_SCRIPTS): Add arm_abs_global.sh. (check_DATA): Add arm_abs_global.stdout. (arm_abs_lib.o, libarm_abs.so, arm_abs_global.o, arm_abs_global, arm_abs_global.stdout): New rules. (MOSTLLYCLEANFILES): Add arm_abs_global * Makefile.in: Regenerate. * testsuite/arm_abs_global.s: New file. * testsuite/arm_abs_global.sh: Ditto. * testsuite/arm_abs_lib.s: Ditto.
Diffstat (limited to 'gold/testsuite/arm_abs_lib.s')
-rw-r--r--gold/testsuite/arm_abs_lib.s37
1 files changed, 37 insertions, 0 deletions
diff --git a/gold/testsuite/arm_abs_lib.s b/gold/testsuite/arm_abs_lib.s
new file mode 100644
index 0000000000..a2d7207148
--- /dev/null
+++ b/gold/testsuite/arm_abs_lib.s
@@ -0,0 +1,37 @@
+ .syntax unified
+
+ .text
+ .align 2
+ .global _movt_abs_global
+ .type _movt_abs_global, %function
+_movt_abs_global:
+ bx lr
+ .size _movt_abs_global, .-_movt_abs_global
+
+ .global _movw_abs_global
+ .type _movw_abs_global, %function
+_movw_abs_global:
+ bx lr
+ .size _movw_abs_global, .-_movw_abs_global
+
+ .thumb
+ .align 2
+ .global _thm_movt_abs_global
+ .type _thm_movt_abs_global, %function
+_thm_movt_abs_global:
+ bx lr
+ .size _thm_movt_abs_global, .-_thm_movt_abs_global
+
+ .global _thm_movw_abs_global
+ .type _thm_movw_abs_global, %function
+_thm_movw_abs_global:
+ bx lr
+ .size _thm_movw_abs_global, .-_thm_movw_abs_global
+
+ .global _abs32_global_plt
+ .type _abs32_global_plt, %function
+_abs32_global_plt:
+ bx lr
+ .size _abs32_global_plt, .-_abs32_global_plt
+
+ .comm _abs32_global,4,4
OpenPOWER on IntegriCloud