[Issue 879] support for --gc-sections

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed Apr 4 16:07:39 PDT 2007


d-bugmail at puremagic.com wrote:
> ------- Comment #2 from thomas-dloop at kuehne.cn  2007-04-04 15:39 -------
> Daniel Jacobowitz suggested a much more straight forward solution on the 
> binutils mailing list(http://sourceware.org/ml/binutils/):
> 
>> Another way to fix this would be to emit R_arch_NONE relocations from
>> the code sections to the EH tables they require.

Interesting. And should be easy enough to implement.
An added advantage to this approach would be that no relatively new 
version of binutils will be required to use --gc-sections[1], which 
might require working around (Linux) package managers.
It'd just a recent version of DMD (after this is implemented) which is 
more likely to be manually installed (and frequently updated) anyway.


[1]: (Assuming R_arch_NONE isn't a recent feature)


More information about the Digitalmars-d-bugs mailing list