Keep relocated 16bit code so checkstack can use it.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 28 May 2009 02:23:33 +0000 (22:23 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 28 May 2009 02:23:33 +0000 (22:23 -0400)
Make was stripping the relocated 16bit code - keep the unstripped
    16bit code so that checkstack can parse it.

Makefile
tools/checkstack.py

index 3a4a1e9345bc937f2fbe91696d7a408f24da0d33..bd5c184f9cba0421b2d76d20fb22299405bddb36 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -119,8 +119,8 @@ $(OUT)rom16.o: $(OUT)romlayout16.o $(OUT)rom32.o $(OUT)layout16.lds
 
 $(OUT)rom.o: $(OUT)rom16.o $(OUT)rom32.o $(OUT)rombios16.lds $(OUT)rombios.lds
        @echo "  Linking $@"
-       $(Q)$(LD) -T $(OUT)rombios16.lds $(OUT)rom16.o -R $(OUT)rom32.o -o $(OUT)rom16.final.o
-       $(Q)$(STRIP) $(OUT)rom16.final.o
+       $(Q)$(LD) -T $(OUT)rombios16.lds $(OUT)rom16.o -R $(OUT)rom32.o -o $(OUT)rom16.reloc.o
+       $(Q)$(STRIP) $(OUT)rom16.reloc.o -o $(OUT)rom16.final.o
        $(Q)$(OBJCOPY) --extract-symbol --adjust-vma 0xf0000 $(OUT)rom16.o $(OUT)rom16.moved.o
        $(Q)$(LD) -T $(OUT)rombios.lds $(OUT)rom16.final.o $(OUT)rom32.o -R $(OUT)rom16.moved.o -o $@
 
index 503fbf35e85494cca1e5c17b70b77e8221a19edb..7cc48adb9fb0ff4e654eca1fcb996eecc4d32674 100755 (executable)
@@ -7,7 +7,7 @@
 # This file may be distributed under the terms of the GNU GPLv3 license.
 
 # Usage:
-#   objdump -m i386 -M i8086 -M suffix -d out/rom16.o | tools/checkstack.py
+#   objdump -m i386 -M i8086 -M suffix -d out/rom16.reloc.o | tools/checkstack.py
 
 import sys
 import re