1# REQUIRES: x86
2
3## --unresolved-symbols=ignore-all behaves similar to -shared:
4## for PLT relocations to undefined symbols, produce dynamic relocations if we
5## emit .dynsym.
6
7# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
8# RUN: ld.lld %t.o -o %t --unresolved-symbols=ignore-all -pie
9# RUN: llvm-readobj -r %t | FileCheck %s
10# RUN: ld.lld %t.o -o %t --unresolved-symbols=ignore-all --export-dynamic
11# RUN: llvm-readobj -r %t | FileCheck %s
12
13# CHECK:      Relocations [
14# CHECK-NEXT:   Section ({{.*}}) .rela.plt {
15# CHECK-NEXT:     R_X86_64_JUMP_SLOT foo 0x0
16# CHECK-NEXT:   }
17# CHECK-NEXT: ]
18
19_start:
20callq foo@PLT
21