[lld] r302687 - [ELF] Define __ehdr_start unconditionally even when using linker script
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed May 10 14:01:06 PDT 2017
Petr Hosek via llvm-commits <llvm-commits at lists.llvm.org> writes:
> # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
> # RUN: echo "SECTIONS { }" > %t.script
> -# RUN: not ld.lld %t.o -script %t.script -o %t 2>&1 | FileCheck %s
> -# CHECK: error: undefined symbol: __ehdr_start
> -# CHECK: >>> referenced by {{.*}}:(.text+0x0)
> +# RUN: ld.lld %t.o -script %t.script -o %t
> +# RUN: llvm-readobj -symbols %t | FileCheck %s
> +# CHECK: Name: __ehdr_start (1)
> +# CHECK-NEXT: Value: 0x0
Don't you want to also have a testcase where linkerscripts are used
but there is space to allocate the headers?
Cheers,
Rafael
More information about the llvm-commits
mailing list