elf->srec link vs string merging

Daniel Jacobowitz drow@false.org
Tue Sep 22 20:04:00 GMT 2009


On Tue, Sep 22, 2009 at 12:49:26PM -0700, Ian Lance Taylor wrote:
> The whole approach is, in my opinion, wrongheaded in today's linker.  It
> made sense when everything used the generic linker, but stopped making
> sense when we introduced the backend-specific linkers (i.e., 1994).  The
> right way is the way that gold generates binary output: generate the ELF
> output as usual, and then convert to the desired format at the very end.
> 
> Actually I think that using objcopy is simple enough.  The only reason
> that gold generates binary format is because the Linux kernel build uses
> it.  Given that gold generates binary, it would be straightforward to
> add support for S-records or Intel hex.

Have ld invoke objcopy using pexecute?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list