[lld] r266819 - Document how a binary file was created.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 13:52:28 PDT 2016
Author: rafael
Date: Tue Apr 19 15:52:28 2016
New Revision: 266819
URL: http://llvm.org/viewvc/llvm-project?rev=266819&view=rev
Log:
Document how a binary file was created.
Modified:
lld/trunk/test/ELF/gotpcrelx.s
Modified: lld/trunk/test/ELF/gotpcrelx.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/gotpcrelx.s?rev=266819&r1=266818&r2=266819&view=diff
==============================================================================
--- lld/trunk/test/ELF/gotpcrelx.s (original)
+++ lld/trunk/test/ELF/gotpcrelx.s Tue Apr 19 15:52:28 2016
@@ -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 at GOTPCREL(%rip), %rax
+movl bar at GOTPCREL(%rip), %eax
+
// CHECK: Name: .got
// CHECK-NEXT: Type: SHT_PROGBITS
// CHECK-NEXT: Flags [
More information about the llvm-commits
mailing list