Allan K Pratt wrote:
> Also, could you please pass judgment on this workaround: when Purify sees 
> a .debug_str section, we zero out the flags. This way the linker always 
> see identical flags - zero. Do you think that will cause any problems? It 
> would result in programs linked with Purify being *more* debuggable than 
> the program built without Purify. But is it harmful in any way?

Some day the Solaris linker might support table merging (ie removing
duplicate strings) when SHF_MERGE and SHF_STRING are both on.  I
thought it already did this, but the header comments say it doesn't.

If you zero out the flags, then you would disable this ability.
It might be slightly better to detect the first set of flags
in the first .debug_str section, and use those same flags to
all subsequent sections.

--chris

Reply via email to