Now that llvm-readobj is fixed, enable this test.

llvm-svn: 183285
This commit is contained in:
Rafael Espindola 2013-06-05 01:38:12 +00:00
parent 806f006490
commit e699c60021
1 changed files with 9 additions and 5 deletions

View File

@ -8,11 +8,9 @@ RUN: %p/Inputs/ifunc.x86-64 %p/Inputs/ifunc.cpp.x86-64 \
RUN: | FileCheck %s --check-prefix=PLT RUN: | FileCheck %s --check-prefix=PLT
RUN: lld -flavor gnu -target x86_64-linux -o %t %p/Inputs/ifunc.x86-64 \ 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: -e main -static %p/Inputs/ifunc.cpp.x86-64
RUN: && llvm-objdump -d -s %t| FileCheck %s --check-prefix=BIN RUN: llvm-objdump -d -s %t| FileCheck %s --check-prefix=BIN
#REMOVE THE BELOW LINE WHEN llvm-readobj adds functionality to print RUN: llvm-readobj -r %t | FileCheck %s --check-prefix=RELATIVEADDEND
#Dynamic relocations
#llvm-readobj -r %t | FileCheck %s --check-prefix=RELATIVEADDEND
PLT: defined-atoms: 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: {{[0-9a-f]+}}: ff 25 {{[0-9a-f]+}} {{[0-9a-f]+}} 00 00 jmpq *{{[0-9]+}}(%rip)
BIN: .got.plt: BIN: .got.plt:
BIN-NEXT: {{[0-9a-f]+}} 00000000 00000000 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: ]