Skip to content

Commit 6ef632a

Browse files
committed
[BOLT,test] Fix lsda.ldscript when MAXPAGESIZE>=0x10000
The intention is to check a section name different from .gcc_except_table . Rather than using a linker script, use llvm-objcopy --rename-section instead.
1 parent c93312a commit 6ef632a

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

bolt/test/Inputs/lsda.ldscript

Lines changed: 0 additions & 10 deletions
This file was deleted.

bolt/test/lsda-section-name.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// This test check that LSDA section named by .gcc_except_table.main is
22
// disassembled by BOLT.
33

4-
// RUN: %clang++ %cxxflags -O3 -no-pie -c %s -o %t.o
5-
// RUN: %clang++ %cxxflags -no-pie -fuse-ld=lld %t.o -o %t.exe \
6-
// RUN: -Wl,-q -Wl,--script=%S/Inputs/lsda.ldscript
7-
// RUN: llvm-readelf -SW %t.exe | FileCheck %s
8-
// RUN: llvm-bolt %t.exe -o %t.bolt
4+
// RUN: %clang++ %cxxflags -O3 -no-pie -fuse-ld=lld %t.o -o %t
5+
// RUN: llvm-objcopy --rename-section .gcc_except_table=.gcc_except_table.main %t
6+
// RUN: llvm-readelf -SW %t | FileCheck %s
7+
// RUN: llvm-bolt %t -o %t.bolt
98

109
// CHECK: .gcc_except_table.main
1110

0 commit comments

Comments
 (0)