brintos

brintos / llvm-project-archived public Read only

0
0
Text · 644 B · 0036e8f Raw
23 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: echo "SECTIONS { .zed : { *(.foo) *(.bar) } }" > %t.script4# RUN: ld.lld --emit-relocs --script %t.script %t.o -o %t15# RUN: llvm-readobj -r %t1 | FileCheck %s6# RUN: ld.lld -r --script %t.script %t.o -o %t.ro7# RUN: llvm-readobj -r %t.ro | FileCheck %s8 9# CHECK:      Relocations [10# CHECK-NEXT:   Section {{.*}} .rela.zed {11# CHECK-NEXT:     0x1 R_X86_64_32 .zed 0x012# CHECK-NEXT:     0x6 R_X86_64_32 .zed 0x513# CHECK-NEXT:   }14# CHECK-NEXT: ]15 16.section .foo,"ax",@progbits17aaa:18  movl $aaa, %edx19 20.section .bar,"ax",@progbits21bbb:22  movl $bbb, %edx23