brintos

brintos / llvm-project-archived public Read only

0
0
Text · 632 B · 96ad703 Raw
34 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && split-file %s %t && cd %t3# RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o4# RUN: llvm-mc -filetype=obj -triple=x86_64 b.s -o b.o5# RUN: ld.lld b.o -o b.so -shared -soname=b.so6# RUN: ld.lld -T a.t a.o b.so -o a7# RUN: llvm-readelf -s a | FileCheck  %s8 9# CHECK: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS f110# CHECK: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS f211 12#--- a.s13.global _start14_start:15.quad f116 17#--- b.s18.global f119.size f1, 820.type f1, @object21f1:22.quad 4223 24.global f225.data26.dc.a f227 28#--- a.t29SECTIONS {30  . = . + SIZEOF_HEADERS;31  PROVIDE(f1 = 42);32  PROVIDE(f2 = 42);33}34