On 12/20/2011 10:14 AM, dsimcha wrote:
1. Make -L--gc-sections the default in dmd.conf on Linux and probably other Posix OS's.
I tried that years ago, and it created executables that always crashed. I seem to recall that it removed some crucial sections :-)
Maybe things are better now and it will work.
2. Add -ffunction-sections and -fdata-sections or equivalents to DMD and compile Phobos with these enabled. I have no idea how hard this would be, but I imagine it would be easy for someone who's already familiar with object file formats.
I didn't know about those flags.