1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Add a test showing that objdump (and so ObjectFIle) can handle shndx.

It was already passing, we were just not testing the code.

llvm-svn: 244504
This commit is contained in:
Rafael Espindola 2015-08-10 21:00:15 +00:00
parent f82b3e73a6
commit 9c7a419c99
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,8 @@
RUN: llvm-objdump -r %p/Inputs/shndx.elf | FileCheck %s
Test that llvm-objdump can handle shndx. The relocation points to a section
symbol that has st_shndx == SHN_XINDEX. To print the section name llvm-objdump
has to use the shndx section.
CHECK: RELOCATION RECORDS FOR [.rela.text]:
CHECK-NEXT: 0000000000000000 R_X86_64_32 bar+0