2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/provide-shared.s -o %t2.o
4 # RUN: ld.lld %t2.o -o %t2.so -shared
5 # RUN: echo "SECTIONS { . = . + SIZEOF_HEADERS; PROVIDE(foo = 42);}" > %t.script
6 # RUN: ld.lld -o %t --script %t.script %t.o %t2.so
7 # RUN: llvm-readelf -s %t | FileCheck %s
9 # CHECK: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS foo