diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /build/plugins/rodata.py | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) | |
download | ydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/rodata.py')
-rw-r--r-- | build/plugins/rodata.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/plugins/rodata.py b/build/plugins/rodata.py index cff6481d23..3ecb0f9a83 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') + 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') - 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): |