Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-loongarch-elf / relr-discard.s
blobb52374a54982da3f9ed2a07f2313cacf98423a83
1 # Test DT_RELR with references in discarded sections.
3 .text
4 .p2align 3
5 .global _start
6 _start:
7 nop
9 sym_local:
10 nop
12 .global sym_hidden
13 .hidden sym_hidden
14 sym_hidden:
15 nop
17 .global sym_global
18 sym_global:
19 nop
21 .global sym_global_abs
22 .set sym_global_abs, 42
24 .global sym_weak_undef
25 .weak sym_weak_undef
27 .section .discard.got_local,"ax"
28 la.got $a0, sym_local
30 .section .discard.got_global,"ax"
31 la.got $a0, sym_global
33 .section .discard.local,"a"
34 .p2align 1
35 discard_local:
36 .quad sym_local
38 .section .discard.hidden,"a"
39 .p2align 1
40 discard_hidden:
41 .quad sym_hidden
43 .section .discard.global,"a"
44 .p2align 1
45 discard_global:
46 .quad sym_global
48 .section .discard.global_abs,"a"
49 .p2align 1
50 discard_global_abs:
51 .quad sym_global_abs
53 .section .discard.weak_undef,"a"
54 .p2align 1
55 discard_weak_undef:
56 .quad sym_weak_undef
58 .section .discard._DYNAMIC,"a"
59 .p2align 1
60 discard_DYNAMIC:
61 .quad _DYNAMIC