This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fwd: [patch ld]: Enable autoimport for x64 by default
- From: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Sun, 16 May 2010 15:33:10 +0100
- Subject: Re: Fwd: [patch ld]: Enable autoimport for x64 by default
- References: <AANLkTilPUz8aNxQ4dPIi_RMThDK4nZv3tV-XrLOR6jqK@mail.gmail.com> <AANLkTilzUlcq0QyDGTLNvFTBgCTWqMN0zgFJ6LPD__4d@mail.gmail.com>
On 16/05/2010 14:49, Kai Tietz wrote:
> this patch set autoimport enabled for x64 targets by default.
> Additionally it removes the option for pseudo-relocation-v1, as for
> this target it would lead to an crash if using it.
So, after this change, the linker will have two options,
"enable-runtime-pseudo-reloc" and "enable-runtime-pseudo-reloc-v2", both of
which mean the same thing and do nothing because they're the default anyway,
and no option at all that refers to -v1. I think that's going to seem a bit
peculiar to users!
Perhaps the -v1 option should trigger an error (deprecation message?) rather
than be removed altogether? Or perhaps you should remove both -v1 and -v2
variants and just have the generic enable/disable options?
> * pep.em (gld_${EMULATION_NAME}_before_parse): Set auto-import
> default enabled.
> (gld_${EMULATION_NAME}_get_script): Check for rdata merge into data
> by pseudo-relocation-kind, too.
> (enum options): Remove OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1.
> (gld${EMULATION_NAME}_add_options): Likewise.
> (gld${EMULATION_NAME}_handle_option): Likewise.
> (pep_find_data_imports): Remove warning about back-door
> enable of auto-import.
>
> Tested for x86_64-pc-mingw32. Ok for apply?
The patch will be OK by me once we've discussed what to do about the
confusing options (perhaps nothing at all if you really want).
cheers,
DaveK