projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mips] Fix ELF e_flags related to -mabicalls and -mplt.
[oota-llvm.git]
/
test
/
MC
/
ELF
/
relocation.s
diff --git
a/test/MC/ELF/relocation.s
b/test/MC/ELF/relocation.s
index 6bac5913b6ee3ecc3aff129703448b4f4027e392..c0e6007dc4e778180aaea515160c731e32330ec0 100644
(file)
--- a/
test/MC/ELF/relocation.s
+++ b/
test/MC/ELF/relocation.s
@@
-25,6
+25,15
@@
bar:
.word foo-bar
.byte foo-bar
.word foo-bar
.byte foo-bar
+ # this should probably be an error...
+ zed = foo +2
+ call zed@PLT
+
+ leaq -1+foo(%rip), %r11
+
+ movl $_GLOBAL_OFFSET_TABLE_, %eax
+ movabs $_GLOBAL_OFFSET_TABLE_, %rax
+
// CHECK: Section {
// CHECK: Name: .rela.text
// CHECK: Relocations [
// CHECK: Section {
// CHECK: Name: .rela.text
// CHECK: Relocations [
@@
-49,6
+58,10
@@
bar:
// CHECK-NEXT: 0x85 R_X86_64_TPOFF64 baz 0x0
// CHECK-NEXT: 0x8D R_X86_64_PC16 foo 0x8D
// CHECK-NEXT: 0x8F R_X86_64_PC8 foo 0x8F
// CHECK-NEXT: 0x85 R_X86_64_TPOFF64 baz 0x0
// CHECK-NEXT: 0x8D R_X86_64_PC16 foo 0x8D
// CHECK-NEXT: 0x8F R_X86_64_PC8 foo 0x8F
+// CHECK-NEXT: 0x91 R_X86_64_PLT32 zed 0xFFFFFFFFFFFFFFFC
+// CHECK-NEXT: 0x98 R_X86_64_PC32 foo 0xFFFFFFFFFFFFFFFB
+// CHECK-NEXT: 0x9D R_X86_64_GOTPC32 _GLOBAL_OFFSET_TABLE_ 0x1
+// CHECK-NEXT: 0xA3 R_X86_64_GOTPC64 _GLOBAL_OFFSET_TABLE_ 0x2
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }