[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / header-phdr2.s
blobfbcd03ff6056d0d10859c0147c305afe7da9343e
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "PHDRS { foobar PT_LOAD FILEHDR PHDRS; }" > %t.script
4 # RUN: echo "SECTIONS { .text : { *(.text) } : foobar }" >> %t.script
5 # RUN: not ld.lld --script %t.script %t.o -o /dev/null 2>&1 | FileCheck %s
7 # CHECK: could not allocate headers
9 .global _start
10 _start:
11 retq