diff options
-rwxr-xr-x | build/compile.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/compile.sh b/build/compile.sh index 50b5771..da75dec 100755 --- a/build/compile.sh +++ b/build/compile.sh @@ -3,7 +3,7 @@ INPATH=$1 INFILE=$(basename $1) INFILENAME="${INFILE%.*}" INEXT="${INFILE##*.}" -gcc -m32 -nostartfiles -nostdlib -ffreestanding "$INPATH" -o "tmp/$INFILENAME".o +gcc -T linker.ld -m32 -nostartfiles -nostdlib -ffreestanding "$INPATH" -o "tmp/$INFILENAME".o objcopy -S -R .note.gnu.build-id -R .comment -O binary "tmp/$INFILENAME".o "bin/$INFILENAME".bin rm "tmp/$INFILENAME".o |