Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2003-10-09 18:27:15

[2003-10-09] Rene Rivera wrote:

>[2003-10-09] David Abrahams wrote:
>>Rene Rivera <grafik.list_at_[hidden]> writes:
>>> And to repay my gratitude I have a variation of your solution which
>>> require patching GCC. Thanks to your discovery of the debug strings
>>> problem, and to Dave G.'s mention of -fwritable-strings, the problem can
>>> fixed by turning off the "readonly" flag for the debug strings section.
>>> prevents the linker from running the n^2 merge algorithm. To do that one
>>> run:
>>> objcopy --set-section-flags .debug_str=contents,debug some_file.o
>>> On each compiled file. Normally the flags are contents,readonly,debug -
>>> the above removes the readonly flag and voila, no merging of debug
>>> :-) [I have Boost.Build changes to do this if there's interest.]
>>Hooray!!! Yes, please!!! Can we have it be the default for debug mode?
>Why yes, that's the way I coded it ;-) I'll put in the changes later today.

OK the changes to gcc-tools.jam are in CVS. I should amend my statement
about when this is enabled... I have it so that it runs the objcopy
post-processing whenever <debug-symbols>on is set. Which means that one
could get this processing if you happen to be generating a non-debug build
that has debugging info in it, for example a profile build.


-- grafik - Don't Assume Anything
-- rrivera (at) - grafik (at)
-- 102708583 (at) icq

Boost list run by bdawes at, gregod at, cpdaniel at, john at