From d1e7027b26db30231975db0894b4f3cc726c3faa Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 22 Mar 2015 14:35:44 -0700 Subject: Add custom linker script --- build/compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1