summaryrefslogtreecommitdiff
path: root/test/elf/Inputs/gotpcrel.S
diff options
context:
space:
mode:
Diffstat (limited to 'test/elf/Inputs/gotpcrel.S')
-rw-r--r--test/elf/Inputs/gotpcrel.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/elf/Inputs/gotpcrel.S b/test/elf/Inputs/gotpcrel.S
new file mode 100644
index 000000000000..300675f59612
--- /dev/null
+++ b/test/elf/Inputs/gotpcrel.S
@@ -0,0 +1,11 @@
+ .text
+ .globl main
+ .align 16, 0x90
+ .type main,@function
+main: # @main
+ movq blah@GOTPCREL(%rip), %rax
+ movq main@GOTPCREL(%rip), %rax
+ ret
+
+ .weak blah
+ .type blah,@function