What's the difference between m68k-coff and m68k-elf ABI?
Alex Holland
alexh@stellarwinds.com
Mon Jan 15 22:32:00 GMT 2001
I recently built 68k cross-compilers for coff, a.out, and elf
output formats hosted under Cygwin.ÃÂ IÃÂ started with ELF
becauseÃÂ ÃÂ itÃÂ seemed to be the most capable (e.g. there seemed to
be more compiler extensions that only worked with ELF,ÃÂ it was completely
flexible in allowing one to create, name, and locate sections,
etc.).ÃÂ ÃÂ It alsoÃÂ seems to be evolving into the preferred
formatÃÂ of most tool chains for 32 bit processors. However, I realized too
late that no ICE or other debug tool that I could find (except for GDB)
supported this format for the 68K.ÃÂ However, all debug
tools that I looked at supported it for more modern processors. Next, I went to
COFF and did not notice much difference for what I was doing. Almost the same
linker script worked and I had to change my startup code a little. However, I am
using my own startup code and (simplified) C runtime libraries. IÃÂ am using
libgcc. I also tried a.out because one particular ICEÃÂ onlyÃÂ supported
this format. However, this format caused me lots of grief. It gives you no
capability to name and locate special sections. I had to change my linker script
and my startup code significantly, and source level debugging was
crippled.
ÃÂ
Also, I have not had much luckÃÂ using objcopyÃÂ to go
from ELF to COFF, a.out,ÃÂ or IEEE695. The copy mightÃÂ complete, but the
result would not be accepted by the particular ICE I was testing, while a direct
output of the compiler generally would.ÃÂ
ÃÂ
Alex
----- Original Message -----
From:
clifftsai
To: crossgcc
Sent: Monday, January 15, 2001 7:54
PM
Subject: What's the difference between
m68k-coff and m68k-elf ABI?
Hi:
ÃÂ ÃÂ ÃÂ When I build the m68k cross development
according
ÃÂ ÃÂ ÃÂ ÃÂ Instructions from
Cygnus's Website.The instrucions tell
ÃÂ ÃÂ ÃÂ us to build m68k tool as
m68k-coff.
ÃÂ ÃÂ ÃÂ But when I look into the
glibc/sysdeps/m68k/elf.
ÃÂ ÃÂ ÃÂ The Start.s is for m68k-elf ABI.Why?How
about Start.s
ÃÂ ÃÂ ÃÂ for coff.
ÃÂ ÃÂ ÃÂ And if I use
m68k-coff or m68k-arm,what should I modified?
ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ Thanks
ÃÂ ÃÂ ÃÂ
Cliff
More information about the crossgcc
mailing list