xref: /aosp_15_r20/external/llvm/test/Object/objdump-shndx.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-objdump -r %p/Inputs/shndx.elf | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard WorkerTest that llvm-objdump can handle shndx. The relocation points to a section
4*9880d681SAndroid Build Coastguard Workersymbol that has st_shndx == SHN_XINDEX. To print the section name llvm-objdump
5*9880d681SAndroid Build Coastguard Workerhas to use the shndx section.
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard WorkerCHECK:      RELOCATION RECORDS FOR [.rela.text]:
8*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: 0000000000000000 R_X86_64_32 bar+0
9