[ipxe-devel] Unrecognised relocation type R_X86_64_32S in util/elf2efi64

Michael Brown mcb30 at ipxe.org
Thu Feb 12 10:34:28 UTC 2015


On 11/02/15 18:15, Jan Kundrát wrote:
> I'm on Gentoo Linux, amd64, with GCC 4.7.2. When trying to build
> bin-x86_64-efi/ipxe.efi, I'm getting the following error from
> util/elf2efi64:
>
>   [FINISH] bin-x86_64-efi/ipxe.efi
> Unrecognised relocation type R_X86_64_32S
> make: *** [bin-x86_64-efi/ipxe.efi] Error 1
>
> The case for R_X86_64_32S is indeed not implemented in process_reloc in
> elf2efi.c.
>
> I don't know anything about relocations, but I suppose that simply
> adding code for this signed variant to call out to generate_pe_reloc is
> not the way to go.

Could you identify some of these relocations within the original object 
files?  Something like:

   objdump -dr bin-x86_64-efi/*.o | grep -C50 R_X86_64_32S

Thanks,

Michael



More information about the ipxe-devel mailing list