28 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-rel-symbol-value.s -o %t2.o4# RUN: ld.lld %t2.o -o %t2.so -shared5# RUN: echo "SECTIONS { . = . + SIZEOF_HEADERS; foo = bar; }" > %t.script6# RUN: ld.lld %t.o %t2.so --script %t.script -o %t7# RUN: llvm-readobj --symbols %t | FileCheck %s8 9# CHECK: Name: bar10# CHECK-NEXT: Value: 0x[[VAL:.*]]11# CHECK-NEXT: Size: 812# CHECK-NEXT: Binding: Global13# CHECK-NEXT: Type: Object14# CHECK-NEXT: Other: 015# CHECK-NEXT: Section: .bss.rel.ro16 17# CHECK: Name: foo18# CHECK-NEXT: Value: 0x[[VAL]]19# CHECK-NEXT: Size:20# CHECK-NEXT: Binding: Global21# CHECK-NEXT: Type:22# CHECK-NEXT: Other: 023# CHECK-NEXT: Section: .bss.rel.ro24 25.global _start26_start:27.quad bar28