diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-19 20:52:28 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-19 20:52:28 +0000 |
| commit | bf7ca7eb5b65b8813f7c78c4771210939b6c0146 (patch) | |
| tree | e47f36d48af4e6b911d705b162c99b0a30dfbc59 | |
| parent | 3fdc257d6a5d6e7a1851d9c78dc49d516ee488be (diff) | |
| download | bcm5719-llvm-bf7ca7eb5b65b8813f7c78c4771210939b6c0146.tar.gz bcm5719-llvm-bf7ca7eb5b65b8813f7c78c4771210939b6c0146.zip | |
Document how a binary file was created.
llvm-svn: 266819
| -rw-r--r-- | lld/test/ELF/gotpcrelx.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/test/ELF/gotpcrelx.s b/lld/test/ELF/gotpcrelx.s index c85d484bb05..b8e8c890dd6 100644 --- a/lld/test/ELF/gotpcrelx.s +++ b/lld/test/ELF/gotpcrelx.s @@ -1,6 +1,12 @@ // RUN: ld.lld %p/Inputs/gotpcrelx.o -o %t.so -shared // RUN: llvm-readobj -s -r %t.so | FileCheck %s +// The gotpcrelx.o is just this file assembled with gas. We should switch to +// llvm-mc once it starts producing R_X86_64_GOTPCRELX and +// R_X86_64_REX_GOTPCRELX. +movq foo@GOTPCREL(%rip), %rax +movl bar@GOTPCREL(%rip), %eax + // CHECK: Name: .got // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ |

