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 7 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 12 13.weak foo 14cmpq $0, foo@GOTPCREL(%rip) 15callq foo 16