This is the mail archive of the gcc@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]

Re: PPC EABI linker script


| 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.


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