Bug 17673 - Linking stabs produces huge binaries
Summary: Linking stabs produces huge binaries
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Cary Coutant
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-03 11:46 UTC by Allan Jensen
Modified: 2014-12-03 11:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Jensen 2014-12-03 11:46:16 UTC
In QtWebKit we use the stabs format instead of dwarf2 on older gcc versions that doesn't support dwarf4, we do this to reduce how much memory is used when linking webkit (linking with dwarf2 using the traditional gnu ld used 11 gigabytes of memory). 

After Qt switched to using the gold linker when available, this has produced counter productive results as not only do we not save any memory during linking stabs object files with gold (we could live with that though), but gold produces huge debug binaries. Where qtwebkit with stabs linked with gnu ld produces debug libraries of 800MByte, and dwarf4 linked with gold 700Mbytes, linking stabs with gold produces debug libraries over 2Gbytes in size.

If gold doesn't really support the stabs format, I would have preferred it refused to link the object files over producing libraries so brokenly huge.