The CloudABI change from https://reviews.llvm.org/D30175 does not make sense. Update tests not to rely on the --export-dynamic behavior.
28 lines
856 B
ArmAsm
28 lines
856 B
ArmAsm
// REQUIRES: x86
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t2.o
|
|
// RUN: ld.lld -shared -soname=t2 %t2.o -o %t2.so
|
|
// RUN: echo "SECTIONS { \
|
|
// RUN: .dynamic : { *(.dynamic) } \
|
|
// RUN: .non_ro : { . += 1; } \
|
|
// RUN: .jcr : { *(.jcr) } \
|
|
// RUN: } " > %t.script
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
// RUN: not ld.lld %t.o %t2.so -o /dev/null --script=%t.script 2>&1 | FileCheck %s
|
|
|
|
// RUN: echo "SECTIONS { \
|
|
// RUN: .dynamic : { *(.dynamic) } \
|
|
// RUN: .non_ro : { BYTE(1); } \
|
|
// RUN: .jcr : { *(.jcr) } \
|
|
// RUN: } " > %t2.script
|
|
// RUN: not ld.lld %t.o %t2.so -o /dev/null --script=%t2.script 2>&1 | FileCheck %s
|
|
|
|
// CHECK: error: section: .jcr is not contiguous with other relro sections
|
|
|
|
.global _start
|
|
_start:
|
|
|
|
// non-empty relro section
|
|
.section .jcr, "aw", @progbits
|
|
.quad 0
|