mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
[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.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
SECTIONS {
|
||||
.interp : { *(.interp) }
|
||||
. = ALIGN(CONSTANT(MAXPAGESIZE));
|
||||
.text : { *(.text*) }
|
||||
. = ALIGN(CONSTANT(MAXPAGESIZE));
|
||||
.gcc_except_table.main : { *(.gcc_except_table*) }
|
||||
. = 0x20000;
|
||||
.eh_frame : { *(.eh_frame) }
|
||||
. = 0x80000;
|
||||
}
|
||||
@@ -1,11 +1,10 @@
|
||||
// This test check that LSDA section named by .gcc_except_table.main is
|
||||
// disassembled by BOLT.
|
||||
|
||||
// RUN: %clang++ %cxxflags -O3 -no-pie -c %s -o %t.o
|
||||
// RUN: %clang++ %cxxflags -no-pie -fuse-ld=lld %t.o -o %t.exe \
|
||||
// RUN: -Wl,-q -Wl,--script=%S/Inputs/lsda.ldscript
|
||||
// RUN: llvm-readelf -SW %t.exe | FileCheck %s
|
||||
// RUN: llvm-bolt %t.exe -o %t.bolt
|
||||
// RUN: %clang++ %cxxflags -O3 -no-pie -fuse-ld=lld %t.o -o %t
|
||||
// RUN: llvm-objcopy --rename-section .gcc_except_table=.gcc_except_table.main %t
|
||||
// RUN: llvm-readelf -SW %t | FileCheck %s
|
||||
// RUN: llvm-bolt %t -o %t.bolt
|
||||
|
||||
// CHECK: .gcc_except_table.main
|
||||
|
||||
|
||||
Reference in New Issue
Block a user