X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tools%2Flayoutrom.py;h=8d557bc1c74e9420adc6aa07dd5a003561122c72;hb=e6f527a719377134f41bd2eab6906e03205a789b;hp=7b2841f6688da749d6064272d0cb56977635edf8;hpb=f89a0d33b4a106b535bff4a95c3c5d707e0a1d90;p=seabios.git diff --git a/tools/layoutrom.py b/tools/layoutrom.py index 7b2841f..8d557bc 100755 --- a/tools/layoutrom.py +++ b/tools/layoutrom.py @@ -134,7 +134,7 @@ def doLayout16(sections, outname): # Write regular sections for section in restsections: name = section[2] - if name == rodatasections[0][2]: + if rodatasections and name == rodatasections[0][2]: output.write("code16_rodata = . ;\n") output.write("*(%s)\n" % (name,))