[ipxe-devel] make bin-x86_64-efi/ipxe.efi

Michael Brown mbrown at fensystems.co.uk
Thu Oct 14 21:40:50 UTC 2010


On Thursday 14 Oct 2010 21:19:16 Duane Voth wrote:
> Which binutils version is required?  I've got bfd-2.20.51 and I'm having
> problems:
> ...
>   [AR] bin-x86_64-efi/blib.a
> ar: creating bin-x86_64-efi/blib.a
>   [HOSTCC] util/elf2efi64
> /usr/lib64/libbfd.a(plugin.o): In function `try_load_plugin':
> binutils-2.20.51.0.7/objs/bfd/../../bfd/plugin.c:132: undefined reference
>  to `dlopen'
> binutils-2.20.51.0.7/objs/bfd/../../bfd/plugin.c:139: undefined reference
>  to `dlsym'
> binutils-2.20.51.0.7/objs/bfd/../../bfd/plugin.c:135: undefined reference
>  to `dlerror'
> collect2: ld returned 1 exit status
> make: *** [util/elf2efi64] Error 1

I haven't tried 2.20.  It looks as though we may need to add "-ldl" to the 
command line for elf2efi64.  Could you try running

  gcc util/elf2efi.c -I/usr/include -I/usr/include -I/usr/include -idirafter \
    include -L/usr/lib -L/usr/lib -L/usr/lib -lbfd -ldl -liberty -lz \
    -Wl,--no-warn-search-mismatch -DEFI_TARGET_X64 -O2 -o util/elf2efi64

and let me know if it works?  If it does, I'll push a change to the tree.

Thanks,

Michael



More information about the ipxe-devel mailing list