[PATCH] fix "--gc-sections doesn't work on Linux/x86"

Alan Modra amodra@bigpond.net.au
Sat Apr 19 11:41:00 GMT 2003


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



More information about the Binutils mailing list