Skip to content

Commit

Permalink
Merge pull request kata-containers#10669 from zvonkok/qemu-aarch64-fix
Browse files Browse the repository at this point in the history
qemu: Fix aarch64 build
  • Loading branch information
zvonkok authored Dec 18, 2024
2 parents 39bf108 + 07d2b00 commit fc2c77f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/packaging/scripts/configure-hypervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fc2c77f

Please sign in to comment.