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.
14 cmpq $
0, foo@GOTPCREL
(%rip
)