a60af0db88
* arm.cc (Arm_output_section::append_text_sections_to_list): Do not skip empty text sections. * testsuite/arm_exidx_test.s: Test handling of an empty text section.
25 lines
470 B
ArmAsm
25 lines
470 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
|
|
|