This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]