RFA: pseudo-relocations for pe targets

Nick Clifton nickc@redhat.com
Thu Nov 6 11:57:00 GMT 2008


Hi Kai,

> Ok, here is my patch for it. I verified it on x86_64-pc-mingw32, so maybe 
> somebody could verify it for 32-bit cygwin/mingw, too.

Assuming that it can be verified for 32-bit cygwin/mingw then this patch 
is approved.

> 2008-11-02  Kai Tietz  <kai.tietz@onevision.com>
> 
>         * emultempl/pep.em (..._before_parse): initialize 
> pei386_runtime_pseudo_reloc by version 2.
>         (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
>         (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
>         (make_import_fixup): Use relocation size to read addend.
>         * emultempl/pe.em (..._before_parse): initialize 
> pei386_runtime_pseudo_reloc by version 1.
>         (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
>         (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
>         * pe-dll.c (pe-dll.h): Remove useless include.
>         (make_runtime_pseudo_reloc): Change addend to use bfd_vma.
>         Handle the two variants of pseudo-relocation.
>         (pe_create_import_fixup): Change addend to type bfd_vma.
>         Modify for the two pseudo_relocation variants.
>         * pe-dll.h (pe_create_import_fixup): Change addend argument type 
> to bfd_vma.
>         * pep-dll.h (pep_create_import_fixup): Likewise.

One thing - please could you add a line to ld/NEWS mentioning the new 
feature ?

Cheers
   Nick




More information about the Binutils mailing list