brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 476f377 Raw
29 lines · plain
1// REQUIRES: x86, mips2/// Link against a DSO to ensure that sections are not discarded by --gc-sections.3// RUN: llvm-mc %S/Inputs/shared.s -o %ts.o -filetype=obj --triple=x86_644// RUN: ld.lld -shared -soname=ts %ts.o -o %ts.so5// RUN: llvm-mc -triple=x86_64-unknown-linux -filetype=obj -o %t.o %s6// RUN: echo "SECTIONS {}" > %t.script7// RUN: not ld.lld --export-dynamic %ts.so %t.o %t.script 2>&1 | FileCheck %s8// RUN: echo "PHDRS { text PT_LOAD; }" > %t2.script9// RUN: not ld.lld --export-dynamic %ts.so %t.o %t2.script 2>&1 | FileCheck %s10// RUN: not ld.lld --export-dynamic %ts.so %t.o --section-start .text=0 2>&1 | FileCheck %s11// RUN: not ld.lld --export-dynamic %ts.so %t.o -Ttext=0 2>&1 | FileCheck %s12// RUN: not ld.lld --export-dynamic %ts.so %t.o -Tdata=0 2>&1 | FileCheck %s13// RUN: not ld.lld --export-dynamic %ts.so %t.o -Tbss=0 2>&1 | FileCheck %s14 15// RUN: llvm-mc %S/Inputs/shared.s -o %ts.o -filetype=obj --triple=mipsel-unknown-linux16// RUN: ld.lld -shared -soname=ts %ts.o -o %ts.so17// RUN: llvm-mc -triple=mipsel-unknown-linux -filetype=obj -o %t2.o %s18// RUN: not ld.lld --export-dynamic %t2.o %ts.so 2>&1 | FileCheck %s19 20// CHECK: error: {{.*}}.o: partitions cannot be used21 22.section .llvm_sympart.f1,"",@llvm_sympart23.asciz "part1"24.quad f125 26.text27.globl f128f1:29