diff options
Diffstat (limited to 'ld/testsuite/ld-aarch64/emit-relocs-301.s')
-rw-r--r-- | ld/testsuite/ld-aarch64/emit-relocs-301.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-301.s b/ld/testsuite/ld-aarch64/emit-relocs-301.s new file mode 100644 index 0000000..d17d4ce --- /dev/null +++ b/ld/testsuite/ld-aarch64/emit-relocs-301.s @@ -0,0 +1,12 @@ + .text + ldr x1, .Lgot + adr x2, .Lgot + add x1, x2, x1 + + movk x0, #:gotoff_g0_nc:globala + movk x0, #:gotoff_g0_nc:globalb + movk x0, #:gotoff_g0_nc:globalc + ldr x0, [x1, x0] + +.Lgot: + .dword _GLOBAL_OFFSET_TABLE_ - . |