This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Separate debug info in gold, ld and objcopy
- From: Vladimir Simonov <sv at sw dot ru>
- To: iant at google dot com
- Cc: binutils at sourceware dot org
- Date: Mon, 13 Apr 2009 17:20:35 +0400
- Subject: Separate debug info in gold, ld and objcopy
Hello Ian and others,
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?
Best regards
Vladimir Simonov