I would like to ask if anybody knows how to create a shared library that could be accessed from 2 projects. The projects are bootloader and application, they both located at the same Cortex-M0 chip and should compile and work under ARM GCC and ARM MDK. The library is quite big (about ~70k). The language is C.
I am using extern
declarations, "symdefs" file symbols+addresses (for MDK) and list of PROVIDEs: symbols+addresses (for GCC) to let the linker know about that shared functionality.
The main questions are how to compile that shared library(what options should I use) and how to instruct linker to use that library.
Maybe there is a relative documentation for creating and using a shared library for any of those compilers (for chip applications, not for desktop ones).
I would be grateful if you point me out on that documentation.