Separate debug info in gold, ld and objcopy

Ian Lance Taylor iant@google.com
Mon Apr 13 19:24:00 GMT 2009


Vladimir Simonov <sv@sw.ru> writes:

> The main goal of gold is linking speedup. In real life
> it is necessary(and suitable) to keep debug info separated
> from executable. As I see, neither gold nor ld
> do not provide possibility to write debug info into
> separate file (and attach appropriate gnu_debulink
> section to executable) during linking. Of course, this
> may be implemented via objcopy but it slow downs linking.
> Especially debug version of large C++ applications.
>
> I see several solutions:
> 1. Implement possibility to write debug info into separate
> file both in gold and in ld.
> 2. Implement possibility to write debug info into separate
> file as some extension in gold.
> 3. Implement objcopy in gold sources tree (hope its
> performance will also be much better with respect to
> "classical" objcopy).
>
> Do you have any plans in this direction?

I don't personally have any plans in this direction at present, but I
completely agree that these would be useful features to have.

Ian



More information about the Binutils mailing list