summaryrefslogtreecommitdiff
path: root/tools/asm_processor
diff options
context:
space:
mode:
authorTyler McGavran <tyler.taggerung@gmail.com>2023-03-29 20:52:15 -0400
committerGitHub <noreply@github.com>2023-03-29 18:52:15 -0600
commit782ed71f6135152697c6da5a232cef4aa1804d85 (patch)
treed6aeccc50bebbfa7c9319dfb6428a1b025c7e9ae /tools/asm_processor
parent8d118db0b25edfbabb059e4b977e339ca9d8f885 (diff)
Massive data relocation (#295)
Mostly relocating rodata from data/* files to the appropriate asm/nonmatching/* files, although there is some plain data relocating to be found in here too. Big change to note is the addition of the code_802AAA70.c file, split from memory.c. Based on some padding in the ro/data for memory it seems clear that a split is needed, although it is not clear that exact spot chosen for the split is correct. Still, it gets the file padding for the ro/data and text segments correct so it can't be too wrong. Also included is an update to the asm_processor tool to support the .hword directive. I made a PR to the main repo of that project with an identical change and it was accepted. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
Diffstat (limited to 'tools/asm_processor')
-rw-r--r--tools/asm_processor/asm_processor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/asm_processor/asm_processor.py b/tools/asm_processor/asm_processor.py
index c750890d6..3c295a556 100644
--- a/tools/asm_processor/asm_processor.py
+++ b/tools/asm_processor/asm_processor.py
@@ -628,7 +628,7 @@ class GlobalAsmBlock:
self.add_sized(self.count_quoted_size(line, z, real_line, output_enc), real_line)
elif line.startswith('.byte'):
self.add_sized(len(line.split(',')), real_line)
- elif line.startswith('.half'):
+ elif line.startswith('.half') or line.startswith('.hword'):
self.align2()
self.add_sized(2*len(line.split(',')), real_line)
elif line.startswith('.'):