This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch] --gc-sections support for the D compilers DMD and GDC with ELF targets
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thomas Kühne <thomas at kuehne dot cn>
- Cc: binutils at sourceware dot org
- Date: Mon, 2 Apr 2007 07:08:48 -0400
- Subject: Re: [Patch] --gc-sections support for the D compilers DMD and GDC with ELF targets
- References: <4610A370.5050600@kuehne.cn>
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