This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linker script question


Johannes Bauer <JB.Imm@gmx.de> writes:

> I have a question regarding linker scripts.

Note that linker scripts are a feature of the linker (obviously) and
the linker is not part of gcc.  The linker is part of the GNU
binutils; see http://sourceware.org/binutils/ .


> Is there a way to refer to the previously defined LENGTH and ORIGIN
> attributes within the SECTION definition, for example like (pseudo
> syntax):
>
> __ramend = MEMORY_LENGTH(SRAM) + __data_start__;

As far as I know this is not possible.  I would recommend generating
the linker script through some sort of preprocessor.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]