[ipxe-devel] Fix elf2efi to recognize R_X86_64_PLT32 relocation type

Michael Brown mcb30 at ipxe.org
Mon Sep 17 16:22:35 UTC 2018


On 21/08/18 16:31, John Jolly wrote:
> Recent changes in GNU build tools causes a build failure with ipxe.efi
> during the elf2efi64 conversion:
> 
>    ./util/elf2efi64 --subsystem=10 bin-x86_64-efi/ipxe.efi.tmp bin-x86_64-efi/ipxe.efi
>    Unrecognised relocation type 4
>    make: *** [Makefile.efi:26: bin-x86_64-efi/ipxe.efi] Error 1
> 
> The relocation type 4 is defined in elf.h as R_X86_64_PLT32 and is now
> being used by the GNU linker. This is currently not supported by the
> elf2efi.c source found in ipxe.
> 
> This error is resolved by adding R_X86_64_PLT32 to the list of
> recognized relocation headers types for elf2efi.
> 
> Signed-off-by: John Jolly <jjolly at suse.com>
> Also-fixed-by: Michael Matz <matz at suse.com>

Sorry for missing this (and subsequently pushing a patch without 
sufficient credit to you both).

Michael




More information about the ipxe-devel mailing list