[m68k] Fix linking for binaries using -mid-shared-library

Bernardo Innocenti bernie@develer.com
Mon Dec 29 03:11:00 GMT 2003


Richard Henderson wrote:
> On Sat, Dec 27, 2003 at 05:28:52PM +0100, Bernardo Innocenti wrote:
>>The uClinux toolchain has a linker frontend shell script that
>>pre/post processes ELF binaries to produce "flat" files suitable
>>for execution in place (XIP).  That is, executing in a romfs image
>>without actually loading the code section in RAM.
> 
> I'm vaguely aware of some of this.  Though I'll note for the record
> that ELF is quite capable of running in ROM as well; whoever came up
> with the uclinux flat format clearly didn't understand ELF.

Does it?  This comes as a surprise to me, but on second thought,
I can see it would be possible with minor tweaks.

Probably the most challenging work to do would be replacing the
in-kernel ELF loader with a version for XIP code, not using VM
tricks.

> But what's done is done...

:-(

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/




More information about the Gcc-patches mailing list