In NXP GCC build 1620 integrated in S32DS 3.3, is that pragma for memory section has already supported? If yes, then do we have a note in the release note for that update? My customer in concern whether it's supported in our NXP GCC, as it's required in AUTOSAR OS concept.
According to release notes in compiler directory (see <>/S32DS.3.3/S32DS/build_tools/gcc_b1620/gcc-6.3-arm32-eabi/releasenotes.pdf) - yes it is:
In version of 9.2.0 #pragma GCC section text ".mcal_text" has no effect for functions like snprintf, vsnprintf ... (standard functions) despite there is custom implementation of them and there is no prototype include before using desired mapping
extern int snprintf(char_t *str, size_t size, const char_t *pcocStr, ...);
extern int vsnprintf(char_t *str, size_t size, const char_t *pcocStr, va_list VarArg);
Only __attribute__ is solution. Perhaps this is a bug.
For builtin functions need to add options like
and then the
achieving desired effect