2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "SECTIONS { .foo : { *(.rela.dyn) } }" > %t.script
4 # RUN: ld.lld -T %t.script %t.o -o %t.so -shared
5 # RUN: llvm-readobj -r %t.so | FileCheck %s
7 # Check we are able to do custom layout for synthetic sections.
8 # (here we check we can place synthetic .rela.dyn into .foo).
10 # CHECK: Relocations [
11 # CHECK: Section ({{.*}}) .foo {
12 # CHECK: R_X86_64_64 .foo 0x0