]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/abs-conflict.s
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / abs-conflict.s
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: ld.lld %t.o %t.o -o %t.so -shared
4 // RUN: llvm-readobj --dyn-symbols %t.so | FileCheck %s
5
6 // CHECK:      Name: foo
7 // CHECK-NEXT: Value: 0x123
8
9 .global foo
10 foo = 0x123
11
12 // RUN: echo ".global foo; foo = 0x124" >  %t2.s
13 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t2.s -o %t2.o
14 // RUN: not ld.lld %t.o %t2.o -o %t.so -shared 2>&1 | FileCheck --check-prefix=DUP %s
15
16 // DUP: duplicate symbol 'foo'