- file.write("*(%s)\n" % (name,))
-
-def doLayout32(sections, outname):
+ out.append((size, align, name))
+ return out
+
+# Layout the 32bit code. This places the code as high as possible.
+def doLayout32(sections, outname, start16):
+ start16 += 0xf0000
+ # Find sections to output
+ textsections = getSectionsPrefix(sections, '.text.')
+ rodatasections = getSectionsPrefix(sections, '.rodata')
+ datasections = getSectionsPrefix(sections, '.data.')
+ bsssections = getSectionsPrefix(sections, '.bss.')
+ start32 = getSectionsStart(
+ textsections + rodatasections + datasections + bsssections, start16, 512)
+
+ # Write sections