[LLVMdev] Proposal: MCLinker - an LLVM integrated linker

Joerg Sonnenberger joerg at britannica.bec.de
Tue Nov 1 11:38:18 PDT 2011


On Wed, Nov 02, 2011 at 02:24:12AM +0800, Tang Luba wrote:
> >  - linker scripts (or equivalent)
> Linker scripts is a thorny problem. The grammar of link script
> language in GNU ld is context sensitive, and hard to be implemented.
> Maybe we can list the necessary requirements first, and try to define
> a simpler grammar.

It is not necessary to preserve compatiblity with GNU linker scripts.
There are many good reasons not to, but the functionality has to exist.
Some of the issues to be addressed:

(1) Mapping sections to fixed offsets.
(2) Ordering of sections and aggregation into PT_LOAD segments.
(3) Setting non-default attributes on segments, e.g. making debug
information loadable for specific applications.
(4) Adding start-of-section/end-of-section markers.

Joerg



More information about the llvm-dev mailing list