diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-08-03 14:55:58 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-08-03 14:55:58 -0500 |
commit | 1bdb15456e5a20a0cad7832e3202c90eee4beba0 (patch) | |
tree | 14eb1ba8b7f50c093897e21d6145d9f2975ff6e3 /wram.py | |
parent | 2bbe5da4b61aafb9c3b9855c709c3bf48d95ff18 (diff) |
fix the bss/wram section default
The default section needs to include a list of labels (even if the list
is empty) because downstream code assumes that the section contains a
key called "labels" that has a value associated with a list.
Diffstat (limited to 'wram.py')
-rw-r--r-- | wram.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -9,7 +9,9 @@ path = os.path.dirname(os.path.abspath(__file__)) def read_bss_sections(bss): sections = [] - section = {} + section = { + "labels": [], + } address = None if type(bss) is not list: bss = bss.split('\n') for line in bss: |