Any idea what license governs the newlib implementation posted above? It looks like the source just provides a single file with every license used by the entire library
This post is useful for my project, I’m wondering though exactly why it does pick the byte copy. I didn’t see in your example that in enables __OPTIMIZE_SIZE__ only __OPTIMIZE__.
I was using custom memcpy() (simply defined this function in one of my project file) and things were working fine , no need to define OPTIMIZE_SIZE as per this post.
But when i move to latest toolchain (14.2.rel1-x86_64-aarch64-none-elf) , linker is complaining about multiple definitions of memcpy (one coming from libc.a and other coming from my custom implementation) .
Any idea how to tell linker not to use libc.a’s memcpy and use my custom ?
Also , interested to know how older toolchain (12.3) works without any problem.