Forums

Diab Linker Overflow specification?

Started by BekAL May 3, 2006
I am looking at the linker manual for the Diab PowerPC linker command
language, and cannot find any sufficient information on the use of the
Overflow Specification - which is supposed to be the ability to have
code that overflows one segment be directed to another.

Does anyone know of any better documentation on how to make use of
this?  Our code has grown to exceed one of the allocated blocks, and
I'd like to append an overflow block to the end of the memory layout
without moving the previous structures.  Does anyone know the pitfalls
of doing something like this?

Thanks for any information you may provide.

BekAL wrote:
> I am looking at the linker manual for the Diab PowerPC linker command > language, and cannot find any sufficient information on the use of the > Overflow Specification - which is supposed to be the ability to have > code that overflows one segment be directed to another. > > Does anyone know of any better documentation on how to make use of > this? Our code has grown to exceed one of the allocated blocks, and > I'd like to append an overflow block to the end of the memory layout > without moving the previous structures. Does anyone know the pitfalls > of doing something like this? > > Thanks for any information you may provide.
I would guess the section definition would look something like this contrived example: GROUP : { .vectors (TEXT) ALIGN(65536) OVERFLOW(8192, .vectors_overflow) : {} /* some section to make the example more interesting */ .text (TEXT) ALIGN(256) : { *(.text) *(.rodata) *(.rdata) *(.init) *(.fini) *(.eini) } .vectors_overflow (TEXT) ALIGN(8) : {} } > sdram -- - Mark