This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: makes --gc-sections compatible with -r/-q
- From: Daniel Jacobowitz <drow at false dot org>
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 8 Jan 2008 09:24:05 -0500
- Subject: Re: PATCH: makes --gc-sections compatible with -r/-q
- References: <C075C281-D6DA-4BD6-AE08-4155258B5F86@adacore.com>
On Tue, Jan 08, 2008 at 03:21:28PM +0100, Tristan Gingold wrote:
> Hi,
>
> this simple patch removes the incompatibility between --gc-sections and -r
> or -q.
> This feature is useful for VxWorks (whose loadable binaries are compiled
> with -r or -q) as well as
> for EFI modules.
>
> We (= AdaCore) are using it for a long time on VxWorks as we are
> compiling the Gnat run time with
> --gc-sections.
What does it keep? In a linked object it's obvious which symbols are
externally visible.
--
Daniel Jacobowitz
CodeSourcery