old-cross-binutils/gold/testsuite/arm_abs_global.s
Doug Kwan e4782e8381 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.
2010-02-12 05:51:32 +00:00

31 lines
518 B
ArmAsm

.syntax unified
.text
.align 2
.global _start
.type _start, %function
_start:
bx lr
.size _start, .-_start
.global _arm_test
.type _arm_test, %function
_arm_test:
movt r0, #:upper16:_movt_abs_global
movw r0, #:lower16:_movw_abs_global
bx lr
.size _arm_test, .-_arm_test
.thumb
.global _thumb_test
_thumb_test:
movt r0, #:upper16:_thm_movt_abs_global
movw r0, #:lower16:_thm_movw_abs_global
bx lr
.size _thumb_test, .-_thumb_test
.data
_data_test:
.word _abs32_global
.word _abs32_global_plt