This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Eddy: EABI specifies some additional linker sections like .sdata, etc.. Clone the yellowknife.ld linker command file from newlib for a complete exaple. b.g. Check out On Mon, Jan 28, 2002 at 06:33:41PM +0100, Eddy Ilg wrote: > Hi, > > I am trying to get started with a crossgcc for an embedded PowerPC > (MPC555). I am stuck on these error messages: > > ----- > /usr/bin/crossgcc/lib/gcc-lib/powerpc-eabi/3.0.3/../../../../powerpc-eabi/bin/ld: > warning: no memory region specified for section `.sdata2' > /usr/bin/crossgcc/lib/gcc-lib/powerpc-eabi/3.0.3/../../../../powerpc-eabi/bin/ld: > warning: no memory region specified for section `.got2' > /usr/bin/crossgcc/lib/gcc-lib/powerpc-eabi/3.0.3/../../../../powerpc-eabi/bin/ld: > warning: no memory region specified for section `.got' > /usr/bin/crossgcc/lib/gcc-lib/powerpc-eabi/3.0.3/../../../../powerpc-eabi/bin/ld: > warning: no memory region specified for section `.sdata' > /usr/bin/crossgcc/lib/gcc-lib/powerpc-eabi/3.0.3/../../../../powerpc-eabi/bin/ld: > main: Not enough room for program headers (allocated 2, need 3) > /usr/bin/crossgcc/lib/gcc-lib/powerpc-eabi/3.0.3/../../../../powerpc-eabi/bin/ld: > final link failed: Bad value > collect2: ld returned 1 exit status > ----- > > The last 2 I don't understand. What do they mean? > In checked the ld manual for sections but I didn't find any. Where could I > find a list of sections that gcc generates (sdata, got2,...)? > > Here is my linker command file: > ------ > OUTPUT_FORMAT("coff-sh") > > OUTPUT_ARCH(powerpc) > > ENTRY(main) > > PROVIDE(_stack = 0x1ffe00); > > MEMORY > { > ram : o = 0 , l = 10k > } > > SECTIONS > { > /* Code and constants */ > .text : > { > __text_start = .; > *(.text) > *(.strings) > __text_end = .; > } > ram > /* Unitialized data */ > .bss : > { > __bss_start = .; > *(.bss) > *(COMMON) > __bss_end = .; > } > ram > /* Initialized data */ > .init : > { > __data_start = .; > *(.data) > __data_end = .; > } > ram > /* Application stack */ > .stack : > { > __stack_start = .; > *(.stack) > __stack_end = .; > } > ram > } > ------ > > Thanks > > > > Eddy > > > > > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com > -- Bill Gatliff bgat@billgatliff.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |