diff options
author | iximeow <me@iximeow.net> | 2015-03-22 14:35:44 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2015-03-22 14:35:44 -0700 |
commit | d1e7027b26db30231975db0894b4f3cc726c3faa (patch) | |
tree | 8c417018e95aafc6fcc9a33844ddde2a7c171c35 | |
parent | 61f66209c5c19aef3849a945a411d465fe188908 (diff) |
Add custom linker script
-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 |