blob: 6d4a33936877125534bd316fe79756c3cab6eee5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: echo "SECTIONS { zed : ONLY_IF_RO { *(foo) *(bar) } }" > %t.script
# RUN: ld.lld -T %t.script %t.o -o %t.so -shared
# RUN: llvm-readobj -S %t.so | FileCheck %s
# CHECK: Sections [
# CHECK-NOT: zed
.section foo,"aw"
.quad 1
.section bar, "a"
.quad 2
|