Currently I am making a cross compilation for arm using the arm-none-eabi tool-chain. after the object files are created using GNU compiler, at the final stage I use arm linker to link the object files and scatter files together. The problem is that during compilation the compiler adds symbols like
__gxx_personality_v0 (implementation in libstdc++)
__impure_ptr (implementation in libc)
__ctype_ptr__ (implementation in libc)
__assert_func (implementation in libc)
I want libc and libstdc++ libraries to be searched at the end when linking, so that other implementations e.g malloc, printf are linked with arm libraries. How can I achieve this ?
I searched through the header files and saw their definitions. I added their definition in my project header files and the compilation completed