]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/lazy-symbols.test
Vendor import of lld trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / lazy-symbols.test
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/lazy-symbols.s -o %t1
3 # RUN: rm -f %tar
4 # RUN: llvm-ar rcs %tar %t1
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t2
6 # RUN: ld.lld %t2 %tar --script %s -o %tout
7 # RUN: llvm-readobj -symbols %tout | FileCheck %s
8
9 foo = 1;
10
11 # This test is to ensure a linker script can define a symbol which have the same
12 # name as a lazy symbol.
13
14 # CHECK: Name: foo
15 # CHECK-NEXT: Value: 0x1