Files
rk35xx-android14/external/crosvm/cuttlefish/crosvm_bionic
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

12 lines
725 B
Bash

#!/bin/bash
# Execute crosvm using the Bionic linker. This is because DT_INTERP of the
# host rust binaries are incorrectly set to /system/bin/linker64. The path
# doesn't exist on host targets, but this is unavoidable because we are
# building the host rust binaries using "-target aarch64-linux-android".
# The target is for Android and therefore DT_INTERP is set to that of Android.
# We have to use the target until rustc supports non-Android target using Bionic
# as libc. Until then, let's override DT_INTERP by executing the dynamic linker
# and feed the absolute path to the rust binary as the first argument.
exec $(dirname $0)/linker64 $(readlink -f $(dirname $0)/$(uname -m)-linux-bionic/$(basename "$0")) "${@}"