object file formats supported under rtems

Ralf Corsepius corsepiu at faw.uni-ulm.de
Fri Jun 14 06:50:06 UTC 2002


Am Don, 2002-06-13 um 21.52 schrieb Glen M Cornell:
> Team,
> 
> Is ELF the only object file format supported under RTEMS?
Almost. It depends on the target you are using. Some targets try to
support several object formats, some are restricted to one object format
(Which in most cases is ELF).

> Is there a reason to use anything other than ELF?
There shouldn't be any, but in reality there are such reasons. In most
cases it's either
* brokenness of an object format's support in a toolchain for a certain
target (Speak: In many cases, bugs in gcc/binutils etc.)
* lack of ELF support in RTEMS for a certain target.

Example: 
RTEMS's SH-port has been developed at a time when sh-gcc used COFF and
didn't support ELF. Therefore the SH-port is COFF by default but should
be sufficitently object-format independent to be usable with ELF, too. 
However, sh-gcc/ELF is known to be broken in several gcc-releases,
therefore sh-rtems-gcc still sticks with COFF as default.

Ralf





More information about the users mailing list