2021-10-08 04:38:58 +08:00
|
|
|
# Check that BOLT generates .debug_aranges section for an input
|
|
|
|
# where it was removed when .gdb_index was generated.
|
|
|
|
RUN: %clang %S/Inputs/icf_baz.c %S/Inputs/icf_main.c -Wl,--icf=all,--gdb-index \
|
2021-12-21 23:36:35 +08:00
|
|
|
RUN: -g -o %t.exe -fuse-ld=lld
|
2021-10-08 04:38:58 +08:00
|
|
|
RUN: llvm-bolt %t.exe -o %t -update-debug-sections -keep-aranges
|
|
|
|
RUN: llvm-dwarfdump -debug-aranges %t | FileCheck %s
|
|
|
|
|
|
|
|
CHECK: Address Range Header: length = {{.*}}, version = 0x0002, cu_offset = 0x00000000, addr_size = 0x08, seg_size = 0x00
|