This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PPC EABI linker script
- To: crossgcc at cygnus dot com, egcs-bugs at cygnus dot com, egcs at cygnus dot com, ra3677 at email dot sps dot mot dot com
- Subject: Re: PPC EABI linker script
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Mon, 1 Jun 1998 15:39:31 -0400
| 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.