blob: fc6a484b8a8e0b8a230221d363b30c11deb0ceb6 [file] [log] [blame]
#!/bin/sh
if base=$(readlink "$0" 2>/dev/null); then
case $base in
/*) base=$(readlink -f "$0" 2>/dev/null);; # if $0 is abspath symlink, make symlink fully resolved.
*) base=$(dirname "$0")/"${base}";;
esac
else
case $0 in
/*) base=$0;;
*) base=${PWD:-`pwd`}/$0;;
esac
fi
basedir=${base%/*}
LD_ARGV0_REL="../usr/x86_64-pc-linux-gnu/aarch64-cros-linux-gnu/gcc-bin/10.2.0/sysroot_wrapper.hardened.noccache" exec "${basedir}/../../../../../lib/ld-linux-x86-64.so.2" --argv0 "$0" --library-path "${basedir}/../../../../../lib" --inhibit-rpath '' "${base}.elf" "$@"