brintos

brintos / llvm-project-archived public Read only

0
0
Text · 638 B · fee28a1 Raw
24 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: echo "SECTIONS { .text.zed : { *(.text.foo) } .text.qux : { *(.text.bar) } }" > %t.script4# RUN: ld.lld -T %t.script --emit-relocs %t.o -o %t5# RUN: llvm-objdump --section-headers %t | FileCheck %s6# RUN: ld.lld -T %t.script -r %t.o -o %t.ro7# RUN: llvm-readelf -S %t.ro | FileCheck %s8 9## Check we name relocation sections in according to10## their target sections names.11 12# CHECK: .text.zed13# CHECK: .text.qux14# CHECK: .rela.text.zed15# CHECK: .rela.text.qux16 17.section .text.foo,"ax"18foo:19 mov $bar, %rax20 21.section .text.bar,"ax"22bar:23 mov $foo, %rax24