use __weak
hardcode config for clang
arm eabi: add missing __aeabi_memcpy / __aeabi_memset
inline: use the gcc inline version instead of the c99 one.
arm: make gd a function using r9

- leave g9 unchanged