Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: tools/toolchains/gcc.py
- Revision:
- 9811:1ab4a497e28d
- Parent:
- 9803:5fbb0ffac3cc
- Parent:
- 9810:06c47a99234c
--- a/tools/toolchains/gcc.py Thu Feb 09 09:50:07 2017 -0600
+++ b/tools/toolchains/gcc.py Thu Feb 09 09:51:32 2017 -0600
@@ -268,6 +268,18 @@
self.cc_verbose("FromELF: %s" % ' '.join(cmd))
self.default_cmd(cmd)
+ @staticmethod
+ def name_mangle(name):
+ return "_Z%i%sv" % (len(name), name)
+
+ @staticmethod
+ def make_ld_define(name, value):
+ return "-D%s=0x%x" % (name, value)
+
+ @staticmethod
+ def redirect_symbol(source, sync, build_dir):
+ return "-Wl,--defsym=%s=%s" % (source, sync)
+
class GCC_ARM(GCC):
@staticmethod