Files
RedBear-OS/stripcore.sh
T
Red Bear OS 1b3e94a20d Red Bear OS relibc baseline
From release 0.1.0 pre-patched archive.
This includes all Red Bear modifications previously maintained
as patches in local/patches/relibc/.
2026-06-27 09:19:26 +03:00

18 lines
484 B
Bash
Executable File

#!/usr/bin/env bash
# This script exists as a workaround for https://github.com/rust-lang/rust/issues/142119
set -e
target=$1
if [ -z "$target" ]; then
echo "Usage:\n\t./stripcore.sh TARGET"
exit 1
fi
for sym in cbrtf ceilf copysignf fabsf fdimf floorf fmaf fmaxf fminf fmodf rintf roundf sqrtf truncf \
cbrt ceil copysign fabs fdim floor fmax fmin fmod rint round sqrt trunc; do \
"$OBJCOPY" --globalize-symbol=$sym --strip-symbol=$sym "$target"; \
done