[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / weak-undef-no-dynamic-linker.s
blobfa6936e1ef393fc52574e634b68cfdea563b995a
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3 # RUN: ld.lld -pie %t.o -o %t
4 # RUN: llvm-readobj --dyn-syms %t | FileCheck %s
5 # RUN: ld.lld -pie --no-dynamic-linker %t.o -o %t
6 # RUN: llvm-readobj --dyn-syms %t | FileCheck --check-prefix=NO %s
8 ## With --no-dynamic-linker, don't emit undefined weak symbols to .dynsym .
9 ## This will suppress a relocation.
10 # CHECK: Name: foo
11 # NO-NOT: Name: foo
13 .weak foo
14 cmpq $0, foo@GOTPCREL(%rip)
15 callq foo