1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Object/objdump-shndx.test
Daniel Cederman 43650cbe76 Implemented sane default for llvm-objdump's relocation Value format
Summary:
"Unknown" for platforms that were not manually added into the switch
did not make sense at all. Now it prints Target + addend for all
elf-machines that were not explicitly mentioned.

Addresses PR21059 and PR25124.

Original author: fedor.sergeev

Reviewers: jyknight, espindola, fedor.sergeev

Reviewed By: jyknight

Subscribers: eraman, dcederman, jfb, dschuff, aheejin, llvm-commits

Differential Revision: https://reviews.llvm.org/D36464

llvm-svn: 333726
2018-06-01 05:31:58 +00:00

9 lines
337 B
Plaintext

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