iPXE discussion forum
compiling bin-i386-efi/snponly.efi - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: compiling bin-i386-efi/snponly.efi (/showthread.php?tid=7194)



compiling bin-i386-efi/snponly.efi - hildred - 2014-02-01 23:33

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



RE: compiling bin-i386-efi/snponly.efi - robinsmidsrod - 2014-02-11 09:29

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.


RE: compiling bin-i386-efi/snponly.efi - hildred - 2014-04-25 17:03

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.