19 lines · plain
1# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-main-addr-section-reuse.s -o %tmain.o2# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-helper1-addr-section-reuse.s -o %thelper1.o3# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-helper2-addr-section-reuse.s -o %thelper2.o4# RUN: %clang %cflags -dwarf-5 %thelper1.o %tmain.o %thelper2.o -o %t.exe -Wl,-q5# RUN: llvm-dwarfdump --debug-info %t.exe | FileCheck --check-prefix=PRECHECK %s6# RUN: llvm-bolt %t.exe -o %t.exe.bolt --update-debug-sections --debug-thread-count=4 --cu-processing-batch-size=47# RUN: llvm-dwarfdump --debug-info %t.exe.bolt | FileCheck --check-prefix=POSTCHECK %s8 9## This test checks that when a binary is bolted if CU is not modified and has DW_AT_addr_base that is shared10## after being bolted CUs still share same entry in .debug_addr.11 12# PRECHECK: DW_AT_addr_base (0x00000008)13# PRECHECK: DW_AT_addr_base (0x00000008)14# PRECHECK: DW_AT_addr_base (0x00000008)15 16# POSTCHECK: DW_AT_addr_base (0x00000008)17# POSTCHECK: DW_AT_addr_base (0x00000018)18# POSTCHECK: DW_AT_addr_base (0x00000008)19