summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/Inputs/mips-gp-disp-def.s
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/ELF/Inputs/mips-gp-disp-def.s')
-rw-r--r--lld/test/ELF/Inputs/mips-gp-disp-def.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/lld/test/ELF/Inputs/mips-gp-disp-def.s b/lld/test/ELF/Inputs/mips-gp-disp-def.s
new file mode 100644
index 00000000000..79306df9bfc
--- /dev/null
+++ b/lld/test/ELF/Inputs/mips-gp-disp-def.s
@@ -0,0 +1,8 @@
+# We cannot create a shared library with defined _gp_disp symbol
+# so we use a workaround - create a library with XXXXXXXX symbols
+# and use 'sed' to replace it by _gp_disp right in the binary file.
+ .data
+ .globl XXXXXXXX
+ .space 16
+XXXXXXXX:
+ .space 4
OpenPOWER on IntegriCloud