diff options
Diffstat (limited to 'run.sh')
| -rwxr-xr-x | run.sh | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#!/bin/sh -e + +# :Tell hare to use our custom runtime +# and linker scripts (this feature is so simple and neat :)) +export HAREPATH=. + +# :Tell the linker to add this argument to discard +# unused sections +export LDFLAGS="--gc-sections" + +# :Do the build +hare build -X^ -T+x86_64 + +# :Create a flat binary out of the elf file +# (while also removing the breaking gnu note) +objcopy \ + --remove-section .note.gnu.property \ + -I elf64-x86-64 -O binary \ + --binary-architecture=i386:x86-64 \ + boot boot.bin + +bochs |
