Fixup bios.bin.elf building on other versions of ld.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 20 Jun 2008 04:14:19 +0000 (00:14 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 20 Jun 2008 04:14:19 +0000 (00:14 -0400)
Should use -Tdata instead of -Ttext.

tools/buildrom.py

index 7d48cb587cdf7126842fece9b8cf601a051145a7..d9a490ddd8f27519c8715e639fb3a9c6e63e2811 100755 (executable)
@@ -81,7 +81,7 @@ def main():
 
     # Build elf file with 32bit entry point
     os.system(
-        "ld -melf_i386 -e %s -Ttext 0xf0000 -b binary %s -o %s" % (
+        "ld -melf_i386 -e %s -Tdata 0xf0000 -b binary %s -o %s" % (
             int(o32['OFFSET_post32'], 16), OUT, OUT+".elf"))
 
 if __name__ == '__main__':