summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2015-03-22 14:35:44 -0700
committeriximeow <me@iximeow.net>2015-03-22 14:35:44 -0700
commitd1e7027b26db30231975db0894b4f3cc726c3faa (patch)
tree8c417018e95aafc6fcc9a33844ddde2a7c171c35 /build
parent61f66209c5c19aef3849a945a411d465fe188908 (diff)
Add custom linker script
Diffstat (limited to 'build')
-rwxr-xr-xbuild/compile.sh2
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