1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/symbol-override.s -o %t2.o
4// RUN: ld.lld -shared %t2.o -o %t2.so
5// RUN: ld.lld %t1.o %t2.so -o %t
6// RUN: llvm-nm -D %t | FileCheck %s
7
8// CHECK:      do
9// CHECK-NEXT: foo
10// CHECK-NOT:  {{.}}
11
12.text
13.globl foo
14.type foo,@function
15foo:
16nop
17
18.text
19.globl _start
20_start:
21callq do@plt
22