Enabling Link Time Optimization (LTO) causes some of the functions used in assembly to be incorrectly stripped off, resulting in linker error. To avoid this, these functions are marked with portDONT_DISCARD macro, definition of which is port specific. This commit adds the definition of portDONT_DISCARD for ARMv7-M ports. Signed-off-by: Gaurav Aggarwal |
5 years ago | |
---|---|---|
.. | ||
port.c | 5 years ago | |
portmacro.h | 5 years ago |