[Patch] --gc-sections support for the D compilers DMD and GDC with ELF targets

Daniel Jacobowitz drow@false.org
Mon Apr 2 11:08:00 GMT 2007


On Mon, Apr 02, 2007 at 08:32:16AM +0200, Thomas Kühne wrote:
> The below patch adds --gc-sections support for the D compilers DMD
> (http://www.digitalmars.com/d) and GDC (http://dgcc.sf.net) to binutils-2.17.

Won't you need something more complicated if you want --gc-sections to
remove unused sections, like ld does for .eh_frame?  It parses it and
marks the bits that are necessary.

Another way to fix this would be to emit R_arch_NONE relocations from
the code sections to the EH tables they require.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list