1 ## Test that in the presence of SHT_LLVM_BB_ADDR_MAP sections,
2 ## --symbolize-operands can display <BB*> labels properly in a relocatable
5 ## Fails on windows (https://github.com/llvm/llvm-project/issues/60013).
6 # UNSUPPORTED: system-windows
8 ## Relocatable Object file.
9 # RUN: yaml2obj %s -o %t1
10 # RUN: llvm-objdump %t1 -d --symbolize-operands -M att --no-show-raw-insn --no-leading-addr | \
11 # RUN: FileCheck %s -DSYM=symbol --match-full-lines
19 SectionHeaderStringTable: .strtab
23 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
25 - Name: .llvm_bb_addr_map
26 Type: SHT_LLVM_BB_ADDR_MAP
41 - Name: .rela.llvm_bb_addr_map
43 Flags: [ SHF_INFO_LINK ]
45 Info: .llvm_bb_addr_map
70 ## Check that if we're missing a relocation section we get the appropriate
73 # RUN: yaml2obj %s --docnum=2 -o %t2
74 # RUN: llvm-readobj %t2 --bb-addr-map 2>&1 | FileCheck %s --check-prefix=NO-RELA-SECTION -DFILE=%t2
85 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
87 - Name: .llvm_bb_addr_map
88 Type: SHT_LLVM_BB_ADDR_MAP
91 # NO-RELA-SECTION: warning: '[[FILE]]': unable to get relocation section for SHT_LLVM_BB_ADDR_MAP section with index 2