mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
Summary: This change removes large "echo" commands from the test by writing tests themselves as linker scripts. Reviewers: rafael Subscribers: emaste, javed.absar, llvm-commits, arichardson Differential Revision: https://reviews.llvm.org/D43900 llvm-svn: 326403
20 lines
496 B
Plaintext
20 lines
496 B
Plaintext
# REQUIRES: arm
|
|
# RUN: echo ".fnstart; .cantunwind; .fnend" \
|
|
# RUN: | llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi - -o %t.o
|
|
# RUN: ld.lld -T %s %t.o -shared -o %t.so
|
|
# RUN: llvm-readobj -s %t.so | FileCheck %s
|
|
|
|
SECTIONS {
|
|
. = SIZEOF_HEADERS;
|
|
.ARM.exidx : { *(.ARM.exidx*) }
|
|
.foo : { _foo = 0; }
|
|
}
|
|
|
|
# CHECK: Section {
|
|
# CHECK: Index:
|
|
# CHECK: Name: .foo
|
|
# CHECK-NEXT: Type: SHT_NOBITS
|
|
# CHECK-NEXT: Flags [
|
|
# CHECK-NEXT: SHF_ALLOC
|
|
# CHECK-NEXT: ]
|