diff options
author | Damien George <damien.p.george@gmail.com> | 2019-11-04 15:31:42 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-11-04 15:31:42 +1100 |
commit | 36c9be6f60314684edf131f554efec7120e20f30 (patch) | |
tree | 13c7b951afa9d503c9e93eb22b01236b490844c8 | |
parent | f2ecfe8b83b4efe24d721778e324a31237653627 (diff) |
tools/mpy-tool.py: Use "@progbits #" attribute for native xtensa code.
-rwxr-xr-x | tools/mpy-tool.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index 39362bc09..9b0b8e8cd 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -422,7 +422,8 @@ class RawCodeNative(RawCode): self.prelude = prelude self.qstr_links = qstr_links self.type_sig = type_sig - if config.native_arch in (MP_NATIVE_ARCH_X86, MP_NATIVE_ARCH_X64): + if config.native_arch in (MP_NATIVE_ARCH_X86, MP_NATIVE_ARCH_X64, + MP_NATIVE_ARCH_XTENSA, MP_NATIVE_ARCH_XTENSAWIN): self.fun_data_attributes = '__attribute__((section(".text,\\"ax\\",@progbits # ")))' else: self.fun_data_attributes = '__attribute__((section(".text,\\"ax\\",%progbits @ ")))' |