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