PATCH: makes --gc-sections compatible with -r/-q
Alan Modra
amodra@bigpond.net.au
Thu Jan 10 08:04:00 GMT 2008
More information about the Binutils mailing list
Thu Jan 10 08:04:00 GMT 2008
- Previous message (by thread): PATCH: makes --gc-sections compatible with -r/-q
- Next message (by thread): PATCH [v2]: makes --gc-sections compatible with -r/-q
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jan 08, 2008 at 03:21:28PM +0100, Tristan Gingold wrote: > 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. > > This patch was test only for ppc-vxworks and i586-linux targets (on a > i586-linux host). Not just only tested on ppc and i586, but only written for ppc and i586. Not OK without some more work. You need to modify gc_sweep_hook to cope with -r for all targets. Also, Eric's change, "Add missing guard", is not the proper fix for ppc_elf_gc_sweep_hook. You should instead exit ppc_elf_gc_sweep_hook immediately if -r, because that is what ppc_elf_check_relocs does. -- Alan Modra Australia Development Lab, IBM
- Previous message (by thread): PATCH: makes --gc-sections compatible with -r/-q
- Next message (by thread): PATCH [v2]: makes --gc-sections compatible with -r/-q
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list