PATCH: makes --gc-sections compatible with -r/-q

Daniel Jacobowitz
Wed Jan 9 05:38:00 GMT 2008

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

More information about the Binutils mailing list