diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-08-18 22:26:02 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-08-18 22:26:02 -0400 |
commit | e6f527a719377134f41bd2eab6906e03205a789b (patch) | |
tree | 6a1b95137d01b7c1eaa1794230b3d399ac5d3f68 /tools | |
parent | f89a0d33b4a106b535bff4a95c3c5d707e0a1d90 (diff) | |
download | seabios-e6f527a719377134f41bd2eab6906e03205a789b.tar.gz |
Fix bug causing layoutrom.py to break if no rodata sections.
Handle case where there are no rodata sections.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/layoutrom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutrom.py b/tools/layoutrom.py index 7b2841f6..8d557bc1 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,)) |