mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-23 22:17:19 +00:00
qemu: Fix aarch64 build
Building static binaries for aarch64 requires disabling PIE We get an GOT overflow and the OS libraries are only build with fpic and not with fPIC which enables unlimited sized GOT tables. Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
parent
39bf10875b
commit
07d2b00863
@ -411,6 +411,13 @@ generate_qemu_options() {
|
||||
qemu_options+=(size:--disable-libdaxctl)
|
||||
qemu_options+=(size:--disable-oss)
|
||||
|
||||
# Building static binaries for aarch64 requires disabling PIE
|
||||
# We get an GOT overflow and the OS libraries are only build with fpic
|
||||
# and not with fPIC which enables unlimited sized GOT tables.
|
||||
if [ "${static}" == "true" ] && [ "${arch}" == "aarch64" ]; then
|
||||
qemu_options+=(arch:"--disable-pie")
|
||||
fi
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# Enabled options
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user