iPXE discussion forum

Full Version: compiling bin-i386-efi/snponly.efi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to compile bin-i386-efi/snponly.efi for booting a early mac mini and I am getting a huge number of errors regarding relocation truncation. I assume this means there are too many components selected. Is this the case? if so what should I disable?
Code:
[LD] bin-i386-efi/snponly.efi.tmp
bin-i386-efi/blib.a(librm.o): In function `p2r_jump_vector':
(.data16+0x3e): relocation truncated to fit: R_386_16 against `.text16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x8): relocation truncated to fit: R_386_16 against `.data16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0xe): relocation truncated to fit: R_386_16 against `.data16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x16): relocation truncated to fit: R_386_16 against `.data16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x21): relocation truncated to fit: R_386_16 against symbol `rm_cs' defined in .data16 section in bin-i386-efi/blib.a(librm.o)
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x28): relocation truncated to fit: R_386_16 against `.data16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x35): relocation truncated to fit: R_386_16 against `.data16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x3e): relocation truncated to fit: R_386_16 against symbol `rm_ds' defined in .text16.data section in bin-i386-efi/blib.a(librm.o)
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x45): relocation truncated to fit: R_386_16 against `.data16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x52): relocation truncated to fit: R_386_16 against `.data16'
bin-i386-efi/blib.a(librm.o): In function `init_librm':
(.text16+0x56): additional relocation overflows omitted from the output
make: *** [bin-i386-efi/snponly.efi.tmp] Error 1
You should report this on the mailing-list where the developers might be able to help you. If you're trying to compile using Xcode then you might have a slightly broken/old GCC toolchain.
As to the current state of affairs:

When compiling snponly.efi it will fail if you try to create a version that will load any binary that is not efi, including linux bzimages. recent linux kernels can also be efi, or you need a loader.
Reference URL's