This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]