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 ## Relocatable Object file.
6 # RUN: yaml2obj %s -o %t1
7 # RUN: llvm-objdump %t1 -d --symbolize-operands -M att --no-show-raw-insn --no-leading-addr | \
8 # RUN: FileCheck %s -DSYM=symbol --match-full-lines
16 SectionHeaderStringTable: .strtab
20 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
22 - Name: .llvm_bb_addr_map
23 Type: SHT_LLVM_BB_ADDR_MAP
53 - Name: .rela.llvm_bb_addr_map
55 Flags: [ SHF_INFO_LINK ]
57 Info: .llvm_bb_addr_map
97 ## Check that if we're missing a relocation section we get the appropriate
100 # RUN: yaml2obj %s --docnum=2 -o %t2
101 # RUN: llvm-readobj %t2 --bb-addr-map 2>&1 | FileCheck %s --check-prefix=NO-RELA-SECTION -DFILE=%t2
112 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
114 - Name: .llvm_bb_addr_map
115 Type: SHT_LLVM_BB_ADDR_MAP
118 # NO-RELA-SECTION: warning: '[[FILE]]': unable to get relocation section for SHT_LLVM_BB_ADDR_MAP section with index 2