Make build hermetic without shell scripts

- Fix some minor issues in ar.com
- Have execve() look for `ape` command
- Rewrite NT paths using /c/ rather /??/c:/
- Replace broken GCC symlinks with .sym files
- Rewrite $PATH environment variables on startup
- Make $(APE_NO_MODIFY_SELF) the default bootloader
- Add all build command dependencies to build/bootstrap
- Get the repository mostly building from source on non-Linux
This commit is contained in:
Justine Tunney 2022-05-25 11:31:08 -07:00
parent d44ff6ce1f
commit d230a01222
160 changed files with 2754 additions and 1342 deletions

View file

@ -1 +0,0 @@
x86_64-linux-musl-g++

View file

@ -0,0 +1 @@
x86_64-linux-musl-g++

View file

@ -1 +0,0 @@
x86_64-linux-musl-gcc

View file

@ -0,0 +1 @@
x86_64-linux-musl-gcc

View file

@ -1 +0,0 @@
x86_64-linux-musl-gcc

View file

@ -0,0 +1 @@
x86_64-linux-musl-gcc

View file

@ -1 +0,0 @@
../x86_64-linux-musl/bin/ld.bfd

View file

@ -1 +0,0 @@
../x86_64-linux-musl/bin/ld.bfd

View file

@ -0,0 +1 @@
../x86_64-linux-musl/bin/ld.bfd

View file

@ -0,0 +1 @@
../x86_64-linux-musl/bin/ld.bfd

View file

@ -1 +0,0 @@
../../../../bin/x86_64-linux-musl-as

View file

@ -0,0 +1 @@
../../../../bin/x86_64-linux-musl-as

View file

@ -1,10 +0,0 @@
#!/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

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-ar

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-ar

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-as

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-as

View file

@ -1 +0,0 @@
ld.bfd

View file

@ -0,0 +1 @@
ld.bfd

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-nm

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-nm

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-objcopy

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-objcopy

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-objdump

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-objdump

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-ranlib

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-ranlib

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-readelf

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-readelf

View file

@ -1 +0,0 @@
../../bin/x86_64-linux-musl-strip

View file

@ -0,0 +1 @@
../../bin/x86_64-linux-musl-strip