commit dc898edab4829a76ec06e36ecb270be71641b030
parent 3bd7ec257d0f0ff0120607dbea647d1339eda7c7
Author: evenfri <evenfri@4plt.ch>
Date: Sat, 31 Oct 2026 23:04:21 +0800
remove i686-elf-gcc depend
Diffstat:
5 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -1,4 +1,4 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
-READ MORE AT https://evenfri.pw/LICENSE.txt
+READ MORE AT https://evenfri.pw/LICENSE.txt
diff --git a/README b/README
@@ -12,11 +12,11 @@ and C
philosophy
==========
-view: https://evenfri.pw/philosophy.html
+view: https://evenfri.pw/philosophy.html
contributing
============
-view: https://evenfri.pw/contributing.html
+view: https://evenfri.pw/contributing.html
maintainer
==========
diff --git a/build/ar b/build/ar
@@ -1,3 +1,3 @@
#!/bin/sh
-exec i686-elf-ar rsc "$@"
+exec ar rsc "$@"
diff --git a/build/cc b/build/cc
@@ -1,11 +1,14 @@
#!/bin/sh
-exec i686-elf-gcc -c \
+exec gcc -c \
+ -m32 \
+ -std=gnu11 \
-O0 \
- -nostdlib \
-ffreestanding \
- -fno-builtin \
- -Wall \
- -Wextra \
+ -fno-stack-protector \
+ -fno-pic -fno-pie \
+ -fno-asynchronous-unwind-tables \
+ -mno-red-zone \
+ -Wall -Wextra \
-I"$kernel" \
"$@"
diff --git a/build/ld b/build/ld
@@ -1,8 +1,8 @@
#!/bin/sh
-exec i686-elf-ld -T linker.ld \
- -nostdlib \
+exec ld -m elf_i386 -T linker.ld \
-static \
- -no-pie \
+ --build-id=none \
+ -z max-page-size=0x1000 \
-o \
- "$@" \
+ "$@"