Add a testcase that would have found the bug in r263971.

llvm-svn: 263988
This commit is contained in:
Rafael Espindola 2016-03-21 21:09:38 +00:00
parent e66d2ebd4e
commit fcaf4310a8
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,12 @@
RUN: llvm-readobj -r %p/Inputs/dynamic-reloc.so | FileCheck --check-prefix=READOBJ %s
READOBJ: Relocations [
READOBJ-NEXT: Section (4) .rela.dyn {
READOBJ-NEXT: 0x1328 R_X86_64_RELATIVE - 0x1320
READOBJ-NEXT: }
READOBJ-NEXT: ]
RUN: llvm-objdump -r %p/Inputs/dynamic-reloc.so | FileCheck --check-prefix=OBJDUMP %s
OBJDUMP: file format ELF64-x86-64
OBJDUMP-NOT: RELOCATION