mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3676 from c1728p9/add_mbed_section_attribute
Add MBED_SECTION attributepull/3602/merge
commit
3a90cde132
|
|
@ -268,6 +268,16 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MBED_SECTION
|
||||
#if (defined(__GNUC__) || defined(__clang__)) || defined(__CC_ARM)
|
||||
#define MBED_SECTION(name) __attribute__ ((section (name)))
|
||||
#elif defined(__ICCARM__)
|
||||
#define MBED_SECTION(name) _Pragma(MBED_STRINGIFY(location=name))
|
||||
#else
|
||||
#error "Missing MBED_SECTION directive"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// FILEHANDLE declaration
|
||||
#if defined(TOOLCHAIN_ARM)
|
||||
#include <rt_sys.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue