mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244504 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/Object/Inputs/shndx.elf
Normal file
BIN
test/Object/Inputs/shndx.elf
Normal file
Binary file not shown.
8
test/Object/objdump-shndx.test
Normal file
8
test/Object/objdump-shndx.test
Normal 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
|
||||
Reference in New Issue
Block a user