mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
32 lines
622 B
ArmAsm
32 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)
|