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] |
surya prakash schrieb: > > Hi, > > I have a basic doubt about cross compilation ..... What is the > difference between 'm68k-coff' and 'm68k-elf ' ?? > Basically I built cross compiler for my MC68360 target using the > following sources for 'm68k-coff'. (Is this correct ??) > 1. Binutils 2.11.2 > 2. gcc 2.95.3 > 3. newlib 1.9.0. > > The problem here is , I am getting some assembler errors for some of the > macro's and switch cases in my code. Pl note that these errors we > are not getting when we use 'powerpc-eabi' cross-compiler....for the > same source code. > > The assembler errors for most of the switch cases look like this > > /tmp/ ccckEhcp.s :634 : Error : value out of range > /tmp/ ccckEhcp.s :634 : Error : value of -15548 too large for field of 1 > bytes at 0xb5. > > My questions here are > > 1. Is there any problem with the above version of the gcc and binutils > for my target M68360 ? I had a problem with the combination of binutils 2.11.2 with gcc-2.95.3 when using the m68000 target (default is m68020). The assembler gave errors when assembling code generated by gcc. I dont't remember the error message exactly, but it was different from yours. I could not see an error in the assembler code. With binutils 2.9.1 and 2.10.2 these errors disappeared. > 2. What is the difference between 'm68k-coff' and 'm68k-elf ' ??.... > Should I use m68k-elf ?? As far as I know elf supports shared libraries and coff does not. I don't use shard libraries on my target system, so I use m68k-coff. Other reason: many people have built m68k-coff so there is a bigger pool of information available. > 3. Does the above combination of binutils and gcc work for my target ?? > I don't know whether the 68360 is cpu32 or 68000 based. If you have to use -m68000 for compiling/assembling, it could be problematic with the tools. > Pl help me out .. I am struck with these problems for a couple of > days.... > > Thanks and Best Regards > Surya > > PS: We are trying to port 'Redboot' from Redhat to our MC68360 Based > board. > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.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] |