Mercurial > hg > CbC > CbC_llvm
annotate lld/test/ELF/export-dynamic-symbol.s @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
rev | line source |
---|---|
150 | 1 # REQUIRES: x86 |
2 | |
3 # RUN: rm -f %t.a | |
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/archive2.s -o %t1.o | |
5 # RUN: llvm-ar rcs %t.a %t1.o | |
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o | |
7 | |
8 # RUN: ld.lld -shared -o %t.so --export-dynamic-symbol foo %t.a %t2.o | |
9 # RUN: llvm-readelf -dyn-symbols %t.so | FileCheck %s | |
10 | |
11 # RUN: ld.lld -shared -o %t.so --export-dynamic --export-dynamic-symbol foo %t.a %t2.o | |
12 # RUN: llvm-readelf -dyn-symbols %t.so | FileCheck %s | |
13 | |
14 # CHECK: foo | |
15 | |
16 .global _start | |
17 _start: | |
18 nop |