Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkerscript / provide-shared2.s
blob3c55d2fa6318c3bb5d8f465f0830bcf6a7ed687f
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
9 # CHECK: 1: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS foo
11 .global _start
12 _start:
13 nop