crtbegin.o and crtend.o replacements

Hi all,

I'm trying to build clang and use it as a main compiler. I've ran into
a problem, however.

I can easily drop libgcc* requirement by using llvm's libunwind, as it
seems to be good enough, libgomp with llvm's openmp runtime, as well as
libstdc++ by using libc++/libc++abi.

However, the two files that I can't find a suitable replacement for are
the ones mentioned in the title. On my system, those two are provided by
gcc itself.

Is there any replacement for those files, so they can be used in combination
with glibc and GNU binutils?

I have found some [1], but they are for x86_64, and I'd welcome such files
for more architectures, namely armv7, armv8, x86_32, etc.

[1] http://wiki.musl-libc.org/wiki/BuildingLLVM

NetBSD has some iirc - I forget the exact link to them, but I suspect
someone else can help out with that.

NetBSD has some iirc - I forget the exact link to them, but I suspect
someone else can help out with that.

http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/lib/csu/common/crtbegin.c

Jon

NetBSD has some iirc - I forget the exact link to them, but I suspect
someone else can help out with that.

http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/lib/csu/common/crtbegin.c

Jon

Thanks both of you.