aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-08-18 22:26:02 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-08-18 22:26:02 -0400
commite6f527a719377134f41bd2eab6906e03205a789b (patch)
tree6a1b95137d01b7c1eaa1794230b3d399ac5d3f68 /tools
parentf89a0d33b4a106b535bff4a95c3c5d707e0a1d90 (diff)
downloadseabios-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-xtools/layoutrom.py2
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,))