[LLVMdev] [lld] Linker script findings.

Meador Inge meadori at codesourcery.com
Thu Jan 10 08:47:58 PST 2013

On 01/09/2013 07:47 PM, Nick Kledzik wrote:

> So the linker script code could live in WriterELF and contribute atoms
> for symbols defined by a linker script.  

I am still getting up to speed with the LLD architecture so maybe I am
missing something, but that seems like a odd place to put it.  I would
think that a Writer would only be focused on serializing atoms to their
respective format.

Since the linker script is an input it would seem more natural to me
to have some sort of linker script Reader that can contribute symbol
definitions, external symbols, new libraries, library search paths,
etc... (to process LD script directives like PROVIDE, EXTERN, INPUT,

Meador Inge
CodeSourcery / Mentor Embedded

More information about the llvm-dev mailing list