From 645e8aa266ca5811937e76587e39d99d3ce411e4 Mon Sep 17 00:00:00 2001 From: iximeow Date: Thu, 5 Nov 2015 00:57:49 -0800 Subject: log start address in build --- build_helpers/compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_helpers/compile.sh') diff --git a/build_helpers/compile.sh b/build_helpers/compile.sh index fc97a27..1b1873e 100755 --- a/build_helpers/compile.sh +++ b/build_helpers/compile.sh @@ -13,9 +13,9 @@ OUTNAME="src._kernel._main" track building_src "Building sources to 'tmp/$OUTNAME'... " gcc -T linker.ld -m32 -Wl,--build-id=none -nostartfiles -nostdlib -ffreestanding $INPATH -o "tmp/$OUTNAME".o trackend building_src t -track find_start "Start address is... " +track find_start "Detecting start address... " BIN_START=$(objdump tmp/src._kernel._main.o -f | grep start | cut -b 15-) -# echo "$BIN_START" +tracknote find_start "Start address is: $BIN_START" trackend find_start t # this actually writes three extra nulls, not sure why... echo "$BIN_START" | xxd -r - | od -t x --endian=little | head | xxd -r - > "bin/$OUTNAME".bin -- cgit v1.1