Johannes Bauer <JB.Imm@xxxxxx> 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