summaryrefslogtreecommitdiff
path: root/tools/mpy-tool.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-11-04 15:31:42 +1100
committerDamien George <damien.p.george@gmail.com>2019-11-04 15:31:42 +1100
commit36c9be6f60314684edf131f554efec7120e20f30 (patch)
tree13c7b951afa9d503c9e93eb22b01236b490844c8 /tools/mpy-tool.py
parentf2ecfe8b83b4efe24d721778e324a31237653627 (diff)
tools/mpy-tool.py: Use "@progbits #" attribute for native xtensa code.
Diffstat (limited to 'tools/mpy-tool.py')
-rwxr-xr-xtools/mpy-tool.py3
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 @ ")))'