This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ELF and SYSROF
- From: <tm_gccmail at kloo dot net>
- To: Cyril Zorin <cyril dot zorin at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 29 Jul 2004 15:40:42 -0700 (PDT)
- Subject: Re: ELF and SYSROF
On Wed, 21 Jul 2004, Cyril Zorin wrote:
> Hi!
>
> First of all, thanks for reading this.
>
> Secondly, I have the following task, which I think would be a very
> interesting one:
>
> I'm working with a certain Hitachi SH3-powered device that runs some
> proprietary OS made by some company.
>
> This OS can only execute files that are in the SYSROF object module
> format.I managed to make gcc cross-compile for sh-elf32, however it
> won't run on that device because I need to convert the ELF32 binary to
> a SYSROF binary.
>
> Does anyone know anything about this? Has anyone heard of the SYSROF
> format? Does anyone know perhaps where I can get the specs on the
> SYSROF format, etc.?
>
> Thank you!
The specs on the SYSROF file format exist, but they're useless. The
Renesas/Hitachi debuggers expect a certain section ordering which is not
documented in the SYSROF documentation, and if you get the ordering wrong,
they will silently fail.
We tried to write an ELF to SYSROF converter once, but gave up for this
reason.
Toshi