PPC EABI linker script

Michael Meissner meissner@cygnus.com
Mon Jun 1 12:39:00 GMT 1998


| Could somebody who is using GCC configured for powerpc-eabi please share
| with me their linker script? I'm coming from the 68k world where I have
| the usual .test, .data and .bss; but powerpc-eabi needs other sections
| for .sdata, .sbss, .sdata2, .sbss2, .got, .got2, .rodata and others.
|
| I'd like an example of how to correctly locate these sections in the
| linker file. I've seen the examples in ldscripts/elf32ppc.* but they
| seem to not be appropriate for an embedded application?

You should be able to use the standard ldscripts.  Note, the embedded powerpc
by does not link in any libraries, so you either need to use -m options for
your bsp, or add the appropriate libraries/crt0 yourself.



More information about the crossgcc mailing list