Skip to content
Snippets Groups Projects
Verified Commit df165b5b authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Remove kernel_ld.sh

parent 4b659d85
No related branches found
No related tags found
1 merge request!296Remove kernel_ld.sh
#!/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 "$@"
......@@ -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" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment