blob: b94e72d28b21f65fc72d1d71d49e65f06d9757fb [file] [log] [blame]
Googler6780b962021-04-29 15:31:32 -07001#!/bin/sh
2if base=$(readlink "$0" 2>/dev/null); then
3 case $base in
4 /*) base=$(readlink -f "$0" 2>/dev/null);; # if $0 is abspath symlink, make symlink fully resolved.
5 *) base=$(dirname "$0")/"${base}";;
6 esac
7else
8 case $0 in
9 /*) base=$0;;
10 *) base=${PWD:-`pwd`}/$0;;
11 esac
12fi
13basedir=${base%/*}
Googler9718e792022-10-20 21:57:13 -070014LD_ARGV0_REL="../bin/llvm-jitlink" exec "${basedir}/../lib/ld-linux-x86-64.so.2" --argv0 "$0" --library-path "${basedir}/../usr/lib64:${basedir}/../lib" --inhibit-rpath '' "${base}.elf" "$@"