• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
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
6
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 0x0
13# CHECK:   }
14
15.data
16.quad .foo
17