old-cross-binutils/gold/testsuite/arm_exidx_test.s
Doug Kwan 647f15745a 2012-03-19 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::do_define_standard_symbols): New method.
 	(Target_arm::do_finalize_sections): Remove code which defines
	__exidx_start and __exidx_end.  Make symbol table parameter
	anonymous as it is not used.
	* gold.cc (queue_middle_tasks): Call target hook to define any
	target-specific symbols.
	* target.h (Target::define_standard_symbols): New method.
	(Target::do_define_standard_symbols): Same.
	* testsuite/Makefile.am (arm_exidx_test): Dump relocations also.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/arm_exidx.s: Generate data relocations for __exidx_start
	and __exidx_end.
	* testsuite/arm_exidx_test.sh: Check that no unused dynamic
	relocations are generated for __exidx_start and __exidx_end.
2012-03-19 23:54:07 +00:00

31 lines
622 B
ArmAsm

.syntax unified
.arch armv5te
.section .text.answer,"ax",%progbits
.align 2
.global answer
.type answer, %function
answer:
.fnstart
.cantunwind
mov r0, #42
bx lr
.fnend
.size answer, .-answer
# Check that we can handle an empty .text section
.section .text.empty,"ax",%progbits
.align 2
.global empty
.type empty, %function
empty:
.fnstart
.cantunwind
.fnend
.size empty, .-empty
# Check that no dynamic relocations for __exidx_start and __exidx_stop
# generated.
.data
.align 12
.word __exidx_start(got)
.word __exidx_end(got)