diff options
author | Marvin Borner | 2020-02-15 16:57:57 +0100 |
---|---|---|
committer | Marvin Borner | 2020-02-15 16:57:57 +0100 |
commit | f5b995586e28f7db426f4707a4348dc067df41c0 (patch) | |
tree | 37bfd54a3ecbe6dca0b2c4530dd28d3177c98362 /run | |
parent | 7ec74159de339baf3687bc59f1c18309b23ef36b (diff) |
Quite many improvements
ok.
Diffstat (limited to 'run')
-rwxr-xr-x | run | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -101,7 +101,6 @@ make_build() { # Userspace # TODO: Find out why userspace optimizations (-Os) cause fatal errors - nasm -f elf ./src/userspace/start.asm -o ./build/userspace/start.o || exit find ./src/userspace/ -name \*.c >./build/tmp while read -r line; do stripped=$(echo "${line}" | sed -r 's/\//_/g') @@ -110,7 +109,7 @@ make_build() { compile_with_flags -O2 -c ./"${line}" -I ./src/userspace -o ./build/userspace/"${stripped}" done <./build/tmp rm ./build/tmp - compile_with_flags -O2 ./build/userspace/*.o -T ./src/userspace/linker.ld -I ./src/userspace -o ./build/user.bin + compile_with_flags -Wl,--oformat=binary -emain -O2 ./build/userspace/*.o -I ./src/userspace -o ./build/user.bin # Create ISO mkdir -p ./iso/boot/ |