[ipxe-devel] ipxe.efi does not compile (hidden symbol _etextdata isn't defined)
Michael Brown
mcb30 at ipxe.org
Tue Mar 28 18:03:16 UTC 2017
On 28/03/17 20:40, Jean Weisbuch wrote:
> While undionly.kpxe and ipxe.lkrn are compiling without any issue, i
> cannot compile ipxe.efi using the latest code from GitHub on a Debian
> Squeeze amd64 :
> <snip>
> bin-x86_64-efi/blib.a(com32_wrapper.o): In function
> `com32_farcall_wrapper':
> (.text+0x1): relocation truncated to fit: R_X86_64_32 against symbol
You are trying to enable IMAGE_COMBOOT, which is conceptually impossible
on EFI since it's intrinsically a BIOS-only format.
> Is there any specific parameters to set on general.h to compile the efi
> binary?
No. If you check out a clean copy of the iPXE code, then a sensible set
of default targets (including bin-x86_64-efi/ipxe.efi) will build correctly.
As a general rule for everyone (on pretty much any codebase): if you get
a build failure then the first thing you should try is removing any
build customisations you have made.
Michael
More information about the ipxe-devel
mailing list