Fix problem where mixed section types can cause internal error during a -r link.
[external/binutils.git] / gold / testsuite / arm_exidx_test.s
1         .syntax unified 
2         .arch   armv5te
3         .section        .text.answer,"ax",%progbits
4         .align  2
5         .global answer
6         .type   answer, %function
7 answer:
8         .fnstart
9         .cantunwind
10         mov     r0, #42
11         bx      lr
12         .fnend
13         .size   answer, .-answer
14
15 # Check that we can handle an empty .text section
16         .section        .text.empty,"ax",%progbits
17         .align  2
18         .global empty
19         .type   empty, %function
20 empty:
21         .fnstart
22         .cantunwind
23         .fnend
24         .size   empty, .-empty
25
26 # Check that no dynamic relocations for __exidx_start and __exidx_stop
27 # generated.
28         .data
29         .align  12
30         .word   __exidx_start(got)
31         .word   __exidx_end(got)