17 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: echo "SECTIONS { .foo : { *(.rela.dyn) } }" > %t.script4# RUN: ld.lld -T %t.script %t.o -o %t.so -shared5# RUN: llvm-readobj -r %t.so | FileCheck %s6 7# Check we are able to do custom layout for synthetic sections.8# (here we check we can place synthetic .rela.dyn into .foo).9 10# CHECK: Relocations [11# CHECK: Section ({{.*}}) .foo {12# CHECK: R_X86_64_64 .foo 0x013# CHECK: }14 15.data16.quad .foo17