[LLVMdev] [lld] Linker script findings.

Sean Silva silvas at purdue.edu
Wed Jan 2 17:28:00 PST 2013

On Wed, Jan 2, 2013 at 10:04 AM, Shankar Easwaran
<shankare at codeaurora.org> wrote:
> Linker scripts also use a wide variety of keywords like :-
> 1) SORT
> 2) ALIGN

As I mentioned in the OP, I tried to focus the description on what
functionality the LLD API will need to expose in order to correctly
implement linker scripts, rather than to describe the language itself.
All relevant aspects of linker scripts should be implementable in
terms of the primitive functionality I described (although SORT may
benefit performance-wise from special handling deeper inside LLD).

> You might want to look at the ELFLayout changes to see what functionality is
> missing from that.
> The ELFLayoutOptions has a hook into reading the Linker script which needs
> to be implemented.

Thanks for the pointers, I'll take a look.

-- Sean Silva

More information about the llvm-dev mailing list