blob: e5c9faa97bb4919ed6bd14332f27c6ec3b9127d8 [file] [log] [blame]
Sayhaan Siddiqui11791ae2024-05-31 22:14:371## Check that BOLT generates .debug_aranges section for an input
2## where it was removed when .gdb_index was generated.
Rafael Aulerb392ec62021-12-23 13:59:353
4REQUIRES: system-linux
5
Vladislav Khmelevskydcc595e2022-01-26 22:59:106RUN: %clang %cflags %S/Inputs/icf_baz.c %S/Inputs/icf_main.c -Wl,--icf=all,--gdb-index \
7RUN: -g -o %t.exe -fuse-ld=lld
Maksim Panchenkod648aa12022-06-10 21:10:588RUN: llvm-bolt %t.exe -o %t --update-debug-sections --keep-aranges
Amir Ayupovd41b4e62021-10-07 20:38:589RUN: llvm-dwarfdump -debug-aranges %t | FileCheck %s
10
11CHECK: Address Range Header: length = {{.*}}, version = 0x0002, cu_offset = 0x00000000, addr_size = 0x08, seg_size = 0x00