sys/boot: Unbreak efi build with WORLD_LDVER=ld.bfd.
authorzrj <rimvydas.jasinskas@gmail.com>
Thu, 13 Feb 2020 11:59:17 +0000 (13:59 +0200)
committerzrj <rimvydas.jasinskas@gmail.com>
Fri, 14 Feb 2020 06:52:51 +0000 (08:52 +0200)
commitec7e03972acbc8bdc46966d3eaff91d62588039e
treef286973df7cdc531f6561f2a37ea453ea71f1a54
parentb1eee65c391c3357aad4bf626e31effa570809a6
sys/boot: Unbreak efi build with WORLD_LDVER=ld.bfd.

 Adjust 64-bit libstand.a location to use full path if available as it is
 done for 32-bit loaders already.

 The ld.bfd when invoked with -ffreestanding will not look for /usr/lib.

 Match ldscript.x86_64 to sys/platform/pc64/conf/ldscript.x86_64.
 Our ld.bfd does not support freebsd emulation target.  Generic target is
 enough to convert boot1.sym and loader.sym intermediates to PE32+.

 While there, use something sane for section padding in ldscript.x86_64.
sys/boot/efi/boot1/Makefile
sys/boot/efi/loader/arch/x86_64/ldscript.x86_64