]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/weak-undef-lib.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / weak-undef-lib.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: echo -e '.globl foo\nfoo: ret' | \
4 # RUN:   llvm-mc -filetype=obj -triple=x86_64-pc-linux - -o %t2.o
5
6 # RUN: ld.lld -shared -o %t.so %t1.o --start-lib %t2.o
7 # RUN: llvm-readobj -dyn-symbols %t.so | FileCheck %s
8
9 # CHECK:      Name: foo
10 # CHECK-NEXT: Value: 0x0
11 # CHECK-NEXT: Size: 0
12 # CHECK-NEXT: Binding: Weak
13 # CHECK-NEXT: Type: None
14 # CHECK-NEXT: Other: 0
15 # CHECK-NEXT: Section: Undefined
16
17 .weak foo
18 .data
19 .quad foo