This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: elf->srec link vs string merging
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