Files
clang-p2996/lld/test/ELF/linkerscript/sections-constraint2.s
Rafael Espindola e71a3f8ae1 Fix constraint checking in ONLY_IF_RO.
We have to look at all the relevant input sections at once.

llvm-svn: 281772
2016-09-16 20:34:02 +00:00

15 lines
339 B
ArmAsm

# 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