1# REQUIRES: x86 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-shared2.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 --dyn-symbols %t | FileCheck %s 8 9# CHECK: 1: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS foo 10 11.global _start 12_start: 13 nop 14