cosmopolitan/third_party/gcc/unbundle.sh
Justine Tunney 9f149e1de3 Elevate .text.syscall to .privileged
It turns out adding OpenBSD msyscall() origin verification broke the
--ftrace flag. The executable needs to issue raw syscalls while it's
rewriting itself. So they need to be in the same section, and that's
just plain simpler too.
2021-02-06 04:49:22 -08:00

10 lines
369 B
Bash
Executable file

#!/bin/sh
#-*-mode:sh;indent-tabs-mode:nil;tab-width:2;coding:utf-8-*-┐
#───vi: set net ft=sh ts=2 sts=2 fenc=utf-8 :vi─────────────┘
mkdir -p o/third_party
cp -R third_party/gcc o/third_party/gcc.$$
for f in $(find o/third_party/gcc.$$ -name \*.gz); do
gunzip $f
chmod +x ${f%.gz}
done
mv o/third_party/gcc.$$ o/third_party/gcc