[lld] r292777 - [ELF] - Linkerscripts: ignore CONSTRUCTORS in output section declaration.

Meador Inge via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 09:02:20 PST 2017


On Mon, Jan 23, 2017 at 3:36 AM, George Rimar via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Added: lld/trunk/test/ELF/linkerscript/constructor.s
> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/
> linkerscript/constructor.s?rev=292777&view=auto
> ============================================================
> ==================
> --- lld/trunk/test/ELF/linkerscript/constructor.s (added)
> +++ lld/trunk/test/ELF/linkerscript/constructor.s Mon Jan 23 03:36:19 2017
> @@ -0,0 +1,12 @@
> +# REQUIRES: x86
> +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
> +# RUN: echo "SECTIONS { foo : { *(.foo) CONSTRUCTORS } }" > %t.script
>

I think the following is missing:

# RUN: ld.lld -o %t1 --script %t.script %t.o


> +
> +# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
> +# CHECK:      Sections:
> +# CHECK-NEXT: Idx Name          Size
> +# CHECK-NEXT:   0               00000000
> +# CHECK-NEXT:   1 foo           00000001
> +
> +.section foo, "a"
> +.byte 0
>

-- 
# Meador
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/6cf6a523/attachment.html>


More information about the llvm-commits mailing list