Commit 5c37ca06 authored by George Hotz's avatar George Hotz

tell tests it's big endian

parent 2a1e6c5b
...@@ -14,7 +14,7 @@ for d in os.listdir("test/"): ...@@ -14,7 +14,7 @@ for d in os.listdir("test/"):
continue continue
print("building", d) print("building", d)
# which mips is go # which mips is go
os.system("%s/mips-elf-as -march=mips32 -o /tmp/mips/%s test/%s" % (path, d, d)) os.system("%s/mips-elf-as -defsym big_endian=1 -march=mips32 -o /tmp/mips/%s test/%s" % (path, d, d))
elffile = ELFFile(open("/tmp/mips/"+d, "rb")) elffile = ELFFile(open("/tmp/mips/"+d, "rb"))
#print(elffile) #print(elffile)
for sec in elffile.iter_sections(): for sec in elffile.iter_sections():
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment