[X86] Improve GOT/PLTOFF on local symbol tests
These fixups lead to relocations (not resolved).
diff --git a/llvm/test/MC/X86/elf-reloc-got.s b/llvm/test/MC/X86/elf-reloc-got.s
index eab24a0..485a283 100644
--- a/llvm/test/MC/X86/elf-reloc-got.s
+++ b/llvm/test/MC/X86/elf-reloc-got.s
@@ -3,11 +3,13 @@
# CHECK: .rela.GOT64 {
# CHECK-NEXT: 0x2 R_X86_64_GOT64 dat 0x0
# CHECK-NEXT: 0xC R_X86_64_GOT64 und 0x0
+# CHECK-NEXT: 0x16 R_X86_64_GOT64 .GOT64 0x0
# CHECK-NEXT: }
.section .GOT64,"ax"
movabs $dat@GOT, %rax
movabs $und@GOT, %rax
+movabs $.GOT64@GOT, %rax
.data
dat:
diff --git a/llvm/test/MC/X86/gotpcrelx.s b/llvm/test/MC/X86/gotpcrelx.s
index e88c514..0de0c91 100644
--- a/llvm/test/MC/X86/gotpcrelx.s
+++ b/llvm/test/MC/X86/gotpcrelx.s
@@ -5,8 +5,8 @@
# COMMON: Relocations [
# COMMON-NEXT: Section ({{.*}}) .rela.text {
-# CHECK-NEXT: R_X86_64_GOTPCRELX mov
-# CHECK-NEXT: R_X86_64_GOTPCRELX test
+# CHECK-NEXT: R_X86_64_GOTPCRELX .text 0xFFFFFFFFFFFFFFFC
+# CHECK-NEXT: R_X86_64_GOTPCRELX test 0xFFFFFFFFFFFFFFFC
# CHECK-NEXT: R_X86_64_GOTPCRELX adc
# CHECK-NEXT: R_X86_64_GOTPCRELX add
# CHECK-NEXT: R_X86_64_GOTPCRELX and
@@ -49,8 +49,8 @@
# CHECK-NEXT: R_X86_64_CODE_4_GOTPCRELX xor
# CHECK-NEXT: }
-# NORELAX-NEXT: R_X86_64_GOTPCREL mov
-# NORELAX-NEXT: R_X86_64_GOTPCREL test
+# NORELAX-NEXT: R_X86_64_GOTPCREL .text 0xFFFFFFFFFFFFFFFC
+# NORELAX-NEXT: R_X86_64_GOTPCREL test 0xFFFFFFFFFFFFFFFC
# NORELAX-NEXT: R_X86_64_GOTPCREL adc
# NORELAX-NEXT: R_X86_64_GOTPCREL add
# NORELAX-NEXT: R_X86_64_GOTPCREL and
@@ -93,7 +93,7 @@
# NORELAX-NEXT: R_X86_64_GOTPCREL xor
# NORELAX-NEXT: }
-movl mov@GOTPCREL(%rip), %eax
+movl .text@GOTPCREL(%rip), %eax
test %eax, test@GOTPCREL(%rip)
adc adc@GOTPCREL(%rip), %eax
add add@GOTPCREL(%rip), %eax
diff --git a/llvm/test/MC/X86/pltoff.s b/llvm/test/MC/X86/pltoff.s
index 75b79ae..a30ee6c 100644
--- a/llvm/test/MC/X86/pltoff.s
+++ b/llvm/test/MC/X86/pltoff.s
@@ -7,8 +7,11 @@
# ASM: movabsq $puts@PLTOFF, %rax
# OBJ: movabsq $0, %rax
# OBJ-NEXT: 0000000000000002: R_X86_64_PLTOFF64 puts{{$}}
+# OBJ: movabsq $0, %rax
+# OBJ-NEXT: 000000000000000c: R_X86_64_PLTOFF64 .text{{$}}
movabsq $puts@PLTOFF, %rax
+movabsq $.text@PLTOFF, %rax
.ifdef ERR
# ERR: {{.*}}.s:[[#@LINE+1]]:1: error: 64 bit reloc applied to a field with a different size