Remove kernel_ld.sh

This commit is contained in:
4lDO2 2023-08-08 12:50:56 +02:00
parent 4b659d8529
commit df165b5b03
No known key found for this signature in database
GPG Key ID: 996A1DBA676A00C0
2 changed files with 1 additions and 18 deletions

View File

@ -1,17 +0,0 @@
#!/usr/bin/env bash
set -ex
LD="$1"
shift
if "${LD}" -z use-gs-for-tls 2>&1 |
grep "warning: -z use-gs-for-tls ignored" &> /dev/null
then
echo "Please update your prefix:" >&2
echo " rm -rf prefix" >&2
echo " make prefix" >&2
exit 1
fi
exec "${LD}" -z use-gs-for-tls "$@"

View File

@ -17,7 +17,7 @@ cargo rustc \
-C debuginfo=2 \
-C lto \
--emit link="${PWD}/libkernel.a"
"${COOKBOOK_RECIPE}/kernel_ld.sh" "${TARGET}-ld" \
"${TARGET}-ld" \
--gc-sections \
-z max-page-size=0x1000 \
-T "${COOKBOOK_SOURCE}/linkers/${ARCH}.ld" \