brintos

brintos / llvm-project-archived public Read only

0
0
Text · 579 B · 4c6a62e Raw
19 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3// RUN: ld.lld %t.o %t.o -o %t.so -shared4// RUN: llvm-readobj --dyn-symbols %t.so | FileCheck %s5 6// CHECK:      Name: foo7// CHECK-NEXT: Value: 0x1238 9.global foo10foo = 0x12311 12// RUN: echo ".global foo; foo = 0x124" >  %t2.s13// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t2.s -o %t2.o14// RUN: not ld.lld %t.o %t2.o -o /dev/null -shared 2>&1 | FileCheck --check-prefix=DUP %s15 16// DUP:      duplicate symbol: foo17// DUP-NEXT: >>> defined in {{.*}}.o18// DUP-NEXT: >>> defined in {{.*}}2.o19