aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/protected-func.s
blob: 8f28f9254a44d6330e7916b82fa542ca4e50c37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# protected function should be non-preemptible and relocated with
# R_LARCH_RELATIVE in shared library, for both GOT and pointer data

.globl x
.protected x
.type x, @function
x:
  ret

.globl _start
_start:
  la.got $a0, x
  ret

.data
p:
  .quad x