15 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3# RUN: ld.lld -pie %t.o -o %t4# RUN: llvm-readobj --dyn-syms %t | FileCheck --check-prefix=NO %s5# RUN: ld.lld -pie --no-dynamic-linker %t.o -o %t6# RUN: llvm-readobj --dyn-syms %t | FileCheck --check-prefix=NO %s7 8## With static PIE (whether or not --no-dynamic-linker is specified), don't9## emit undefined weak symbols to .dynsym . This suppresses relocations.10# NO-NOT: Name: foo11 12.weak foo13cmpq $0, foo@GOTPCREL(%rip)14callq foo15