2018-06-06 21:56:51 +08:00
|
|
|
// REQUIRES: x86
|
2016-01-25 16:44:38 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/symbol-override.s -o %t2.o
|
|
|
|
// RUN: ld.lld -shared %t2.o -o %t2.so
|
|
|
|
// RUN: ld.lld %t1.o %t2.so -o %t
|
2019-09-06 23:10:31 +08:00
|
|
|
// RUN: nm -D %t | FileCheck %s
|
2016-01-25 16:44:38 +08:00
|
|
|
|
2019-09-06 23:10:31 +08:00
|
|
|
// CHECK: do
|
|
|
|
// CHECK-NEXT: foo
|
|
|
|
// CHECK-NOT: {{.}}
|
2016-01-25 16:44:38 +08:00
|
|
|
|
|
|
|
.text
|
|
|
|
.globl foo
|
|
|
|
.type foo,@function
|
2016-07-26 00:51:52 +08:00
|
|
|
foo:
|
2016-01-25 16:44:38 +08:00
|
|
|
nop
|
|
|
|
|
|
|
|
.text
|
|
|
|
.globl _start
|
|
|
|
_start:
|
2016-02-09 23:11:01 +08:00
|
|
|
callq do@plt
|