Re: [PATCH] x86 UEFI: Fix broken build for UEFI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/14/22 12:14, Alexandru Elisei wrote:
Hi,

On Thu, Feb 10, 2022 at 05:20:44PM +0800, Zhenzhong Duan wrote:
UEFI loads EFI applications to dynamic runtime addresses, so it requires
all applications to be compiled as PIC (position independent code).

The new introduced single-step #DB tests series bring some compile time
absolute address, fixed it with RIP relative address.

With this patch the error:

ld: x86/debug.o: relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC

disappears and I can now build kvm-unit-tests for x86_64 when configured
with --target-efi:

Tested-by: Alexandru Elisei <alexandru.elisei@xxxxxxx>

Applied, thanks.

Paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux