[lld] r183285 - Now that llvm-readobj is fixed, enable this test.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jun 4 18:38:12 PDT 2013
Author: rafael
Date: Tue Jun 4 20:38:12 2013
New Revision: 183285
URL: http://llvm.org/viewvc/llvm-project?rev=183285&view=rev
Log:
Now that llvm-readobj is fixed, enable this test.
Modified:
lld/trunk/test/elf/ifunc.test
Modified: lld/trunk/test/elf/ifunc.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/ifunc.test?rev=183285&r1=183284&r2=183285&view=diff
==============================================================================
--- lld/trunk/test/elf/ifunc.test (original)
+++ lld/trunk/test/elf/ifunc.test Tue Jun 4 20:38:12 2013
@@ -8,11 +8,9 @@ RUN: %p/Inputs/ifunc.x86-64 %p/Inputs/
RUN: | FileCheck %s --check-prefix=PLT
RUN: lld -flavor gnu -target x86_64-linux -o %t %p/Inputs/ifunc.x86-64 \
-RUN: -e main -static %p/Inputs/ifunc.cpp.x86-64 \
-RUN: && llvm-objdump -d -s %t| FileCheck %s --check-prefix=BIN
-#REMOVE THE BELOW LINE WHEN llvm-readobj adds functionality to print
-#Dynamic relocations
-#llvm-readobj -r %t | FileCheck %s --check-prefix=RELATIVEADDEND
+RUN: -e main -static %p/Inputs/ifunc.cpp.x86-64
+RUN: llvm-objdump -d -s %t| FileCheck %s --check-prefix=BIN
+RUN: llvm-readobj -r %t | FileCheck %s --check-prefix=RELATIVEADDEND
PLT: defined-atoms:
@@ -54,3 +52,9 @@ CHECK: type: resolver
BIN: {{[0-9a-f]+}}: ff 25 {{[0-9a-f]+}} {{[0-9a-f]+}} 00 00 jmpq *{{[0-9]+}}(%rip)
BIN: .got.plt:
BIN-NEXT: {{[0-9a-f]+}} 00000000 00000000
+
+RELATIVEADDEND: Relocations [
+RELATIVEADDEND-NEXT: Section (1) .rela.plt {
+RELATIVEADDEND-NEXT: 0x401000 R_X86_64_IRELATIVE - 0x4000E0
+RELATIVEADDEND-NEXT: }
+RELATIVEADDEND-NEXT: ]
More information about the llvm-commits
mailing list