summaryrefslogtreecommitdiffstats
path: root/build/plugins/rodata.py
diff options
context:
space:
mode:
authorMikhail Borisov <[email protected]>2022-02-10 16:45:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:39 +0300
commita6a92afe03e02795227d2641b49819b687f088f8 (patch)
treef6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /build/plugins/rodata.py
parentc6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff)
Restoring authorship annotation for Mikhail Borisov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/rodata.py')
-rw-r--r--build/plugins/rodata.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/build/plugins/rodata.py b/build/plugins/rodata.py
index 3ecb0f9a839..cff6481d233 100644
--- a/build/plugins/rodata.py
+++ b/build/plugins/rodata.py
@@ -81,7 +81,7 @@ class ROData(iw.CustomCommand):
in_file = self.resolve_path(common.get(self.input, 0))
in_file_no_ext = common.stripext(in_file)
file_name = os.path.basename(in_file_no_ext)
- file_size = os.path.getsize(in_file)
+ file_size = os.path.getsize(in_file)
tmp_file = self.resolve_path(common.get(self.output, 0) + '.asm')
parser = argparse.ArgumentParser(prog='rodata.py', add_help=False)
@@ -95,12 +95,12 @@ class ROData(iw.CustomCommand):
f.write('SECTION .rodata ALIGN=16\n')
f.write(self._prefix + file_name + ':\nincbin "' + in_file + '"\n')
f.write('align 4, db 0\n')
- f.write(self._prefix + file_name + 'Size:\ndd ' + str(file_size) + '\n')
-
- if self._fmt.startswith('elf'):
- f.write('size ' + self._prefix + file_name + ' ' + str(file_size) + '\n')
- f.write('size ' + self._prefix + file_name + 'Size 4\n')
+ f.write(self._prefix + file_name + 'Size:\ndd ' + str(file_size) + '\n')
+ if self._fmt.startswith('elf'):
+ f.write('size ' + self._prefix + file_name + ' ' + str(file_size) + '\n')
+ f.write('size ' + self._prefix + file_name + 'Size 4\n')
+
return self.do_run(binary, tmp_file)
def do_run(self, binary, path):