[PATCH] D23505: [ELF] - Linkrscript: shange the way of creating PT_LOADs segments when LS is used.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 14:13:15 PDT 2016
On 15 August 2016 at 08:34, George Rimar via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> grimar created this revision.
> grimar added a reviewer: ruiu.
> grimar added subscribers: llvm-commits, grimar, davide, evgeny777.
> Herald added a subscriber: emaste.
>
> I noticed that logic of PT_LOADs creation when script is used in gnu linekrs is different from what we have now.
> For example ld seems to create 2 PT_LOADs. In first one it puts all sections before first writable, it is text load,
> and also it has data load where all sections after and including first writable are placed.
I don't think this is script specific. It is just lld defaulting --rosegment.
> FreeBSD script seems to rely on this logic, and also it seems to be clear and simple, so patch implements the same.
How does in depend on it?
> https://reviews.llvm.org/D23505
>
> Files:
> ELF/Writer.cpp
> test/ELF/arm-blx.s
> test/ELF/arm-branch.s
> test/ELF/arm-thumb-branch.s
> test/ELF/linkerscript/linkerscript-common.s
> test/ELF/linkerscript/linkerscript-excludefile.s
> test/ELF/linkerscript/linkerscript-filename-spec.s
> test/ELF/linkerscript/linkerscript-merge-sections.s
> test/ELF/linkerscript/linkerscript-ptloads.s
> test/ELF/linkerscript/linkerscript-repsection-va.s
> test/ELF/linkerscript/linkerscript-sections-constraint.s
> test/ELF/linkerscript/linkerscript-sections-keep.s
> test/ELF/linkerscript/linkerscript-sections-padding.s
> test/ELF/linkerscript/linkerscript-sizeof.s
> test/ELF/linkerscript/linkerscript-sizeofheaders.s
> test/ELF/linkerscript/linkerscript-sort-nested.s
> test/ELF/linkerscript/linkerscript-sort.s
> test/ELF/linkerscript/linkerscript-symbol-assignexpr.s
> test/ELF/linkerscript/linkerscript-symbol-conflict.s
> test/ELF/linkerscript/linkerscript-symbols-synthetic.s
> test/ELF/linkerscript/linkerscript-symbols.s
> test/ELF/linkerscript/linkerscript-va.s
> test/ELF/phdr-align.s
> test/ELF/wildcards.s
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list