This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] fix "--gc-sections doesn't work on Linux/x86"
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Julien LEMOINE <speedblue at debian dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 19 Apr 2003 21:11:12 +0930
- Subject: Re: [PATCH] fix "--gc-sections doesn't work on Linux/x86"
- References: <20030418234834.GF4912@trinity.all-3rd.net>
On Sat, Apr 19, 2003 at 01:48:35AM +0200, Julien LEMOINE wrote:
> if (!get_elf_backend_data (abfd)->can_gc_sections
> - || info->relocateable || info->emitrelocations
> - || elf_hash_table (info)->dynamic_sections_created)
> + || info->relocateable || info->emitrelocations)
> + // || elf_hash_table (info)->dynamic_sections_created)
> return TRUE;
No, we really can't safely garbage collect sections when dynamic
sections are involved in the link.
--
Alan Modra
IBM OzLabs - Linux Technology Centre