Hello, For static RTPs, libc_internal is included in link closures through LIB_SPEC and LIBGCC_SPEC, which makes it hard to conditionally remove with command line options such as -nolibc. This change arranges to have libc_internal dragged in from LIB_SPEC only and reworks the ordering of libs that participate in LIB_SPEC to match a rationale that the head comment can state.
We have been using this for a while in our gcc-7 based toolchains on several targets. I checked on a gcc-8 based source tree that I can still build functional compilers passing Ada ACATS for VxWorks 6.9 and 7.0. Bootstrapped and reg tested on mainline for x86_64-linux. With Kind Regards, Olivier 2018-09-20 Olivier Hainque <hain...@adacore.com> * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Remove -lc_internal. Merge block comment with the one ahead of VXWORKS_LIBS_RTP. Then: (VXWORKS_LIBS_RTP): Minor reordering.
0006-Cleanup-handling-of-libgcc-and-libc_internal-for-VxW.patch
Description: Binary data