[ipxe-devel] ipxe.efi does not compile (hidden symbol _etextdata isn't defined)

Jean Weisbuch jean at phpnet.org
Tue Mar 28 18:36:24 UTC 2017


There isnt any customization as its (re)based on the GitHub HEAD just 
before the compilation.

The same error happens even if i undef or define IMAGE_COMBOOT on 
config/general.h.


Le 28/03/2017 à 20:03, Michael Brown a écrit :
> 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