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.exe7# RUN: llvm-readelf -s %t2.exe | FileCheck %s8 9# CHECK: 0000000000010000 0 NOTYPE GLOBAL DEFAULT ABS foo10# CHECK: 0000000000011001 40 OBJECT GLOBAL DEFAULT ABS bar11 12.globl foo, bar13foo:14 ret15 16.section .data17.type bar, @object18.size bar, 4019bar:20 .zero 4021