21 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t1.exe --image-base=0x10000 -Ttext=0x100005 6# RUN: ld.lld --just-symbols=%t1.exe -o %t2.exe --cref | FileCheck %s7 8# CHECK: Symbol File9# CHECK-NEXT: foo {{.*exe}}10# CHECK-NEXT: bar {{.*exe}}11 12.globl foo, bar13foo:14 ret15 16.section .data17.type bar, @object18.size bar, 4019bar:20 .zero 4021