2011-04-23 05:50:03 +08:00
|
|
|
.syntax unified
|
|
|
|
.arch armv5te
|
2011-06-25 00:40:34 +08:00
|
|
|
.section .text.answer,"ax",%progbits
|
2011-04-23 05:50:03 +08:00
|
|
|
.align 2
|
|
|
|
.global answer
|
|
|
|
.type answer, %function
|
|
|
|
answer:
|
|
|
|
.fnstart
|
2011-06-25 00:40:34 +08:00
|
|
|
.cantunwind
|
2011-04-23 05:50:03 +08:00
|
|
|
mov r0, #42
|
|
|
|
bx lr
|
|
|
|
.fnend
|
|
|
|
.size answer, .-answer
|
2011-06-25 00:40:34 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2012-03-20 07:54:07 +08:00
|
|
|
# Check that no dynamic relocations for __exidx_start and __exidx_stop
|
|
|
|
# generated.
|
|
|
|
.data
|
|
|
|
.align 12
|
|
|
|
.word __exidx_start(got)
|
|
|
|
.word __exidx_end(got)
|