5.7.10.4 Nostdlib Option

The -nostdlib option will prevent the standard system startup files and libraries being linked into the project. No startup files and only the libraries you specify are passed to the linker.

The compiler may generate calls to memcmp(), memset() and memcpy(). These entries are usually resolved by entries in standard compiler libraries. These entry points should be supplied through some other mechanism when this option is specified.

Additionally, you must provide your own implementations of the __pic32c_data_initialization() and __libc_init_array() functions, which are called by the default device startup code calls .