Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

17 lines
539 B
ArmAsm

// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
// RUN: rm -f %t1.a
// RUN: llvm-ar rc %t1.a %t1.o
// RUN: ld.lld %t1.o -o %t1.so -shared
// RUN: echo ".global foo" > %t2.s
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t2.s -o %t2.o
// RUN: ld.lld %t1.a %t1.so %t2.o -o %t.so -shared
// RUN: llvm-readelf --dyn-symbols %t.so | FileCheck %s
// Test that 'foo' from %t1.so is used and we don't fetch a member
// from the archive.
// CHECK: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND foo
.global foo
foo: