Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / executable-undefined-ignoreall.s
blobcc38e17cdf619b0154cc227ea5f21d16132aae4b
1 # REQUIRES: x86
3 ## --unresolved-symbols=ignore-all behaves similar to -shared:
4 ## for PLT relocations to undefined symbols, produce dynamic relocations if we
5 ## emit .dynsym.
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
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: ]
19 _start:
20 callq foo@PLT