This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using no_scanlib

My program compiles great when I include arm std libs but on using --no_scanlib linker flag, it generates the __aeabi_uldivmod,__aeabi_memcpy & __main undefined at link time arrors.

Where can I find the header files with these definitions so I may create my own definitions to use with the --no_scanlib flag.

I am already using my own filetypes.h for bool,etc (the aim is to isolate the compiler from everything else I am not using).

Also, what creates __scatterload and why?

  • __scatterload is called by code the linker adds to unpack the load regions from ROM into RAM, usually called from __main
    The linker creates tables, basically describing areas which copy from ROM, or are zeroed as part of the C runtime statics initialization. Probably similar stuff for C++ constructors.