[ipxe-devel] elf2efi32: Unrecognised relocation type 3

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Mar 27 09:53:08 UTC 2018


Hello Michael,

building iPXE on 32bit arm fails:

$ make V=1 bin-arm32-efi/snp.efi EMBED=config/local/chain.ipxe
./util/elf2efi32 --subsystem=10 bin-arm32-efi/snp.efi.tmp
bin-arm32-efi/snp.efi
Unrecognised relocation type 3
Makefile.efi:25: recipe for target 'bin-arm32-efi/snp.efi' failed
make: *** [bin-arm32-efi/snp.efi] Error 1

$ gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

$ ld --version
GNU ld (GNU Binutils for Debian) 2.28

This should be the relevant relocation types:
#define R_ARM_REL32             3       /* PC relative 32 bit */

In util/elf2efi.c you skip many PC-relative relocations.
Should R_ARM_REL32 be added to this list?

Best regards

Heinrich Schuchardt



More information about the ipxe-devel mailing list