You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
487 B
17 lines
487 B
7 months ago
|
# REQUIRES: x86
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
||
|
# RUN: echo "SECTIONS { .foo : { *(.rela.dyn) } }" > %t.script
|
||
|
# RUN: ld.lld -T %t.script %t.o -o %t.so -shared
|
||
|
# RUN: llvm-readobj -r %t.so | FileCheck %s
|
||
|
|
||
|
# Check we are able to do custom layout for synthetic sections.
|
||
|
# (here we check we can place synthetic .rela.dyn into .foo).
|
||
|
|
||
|
# CHECK: Relocations [
|
||
|
# CHECK: Section ({{.*}}) .foo {
|
||
|
# CHECK: R_X86_64_64 .foo 0x0
|
||
|
# CHECK: }
|
||
|
|
||
|
.data
|
||
|
.quad .foo
|