> I'm using Clang, with arm-none-linux-gnueabi-g++ as a linker. Although > compiler-rt replaced libgcc, we still need other libs such as libc, libm, > etc. It seems libc is calling these missing functions.If you compile libc with gcc, then yes, you might need arbitrary functions from libgcc. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
liangh at codeaurora.org
2012-Nov-16 20:14 UTC
[LLVMdev] [compiler-rt] is the arm lib complete?
So, you mean I should compile libc with clang and link with compiler-rt too? But how can we expect a user of compiler-rt have a libc compiled in this way? It's a part of gcc's src code... If compiler-rt is a complete lib, it should also cover these functions, right? BTW, if libc is compiled statically, shouldn't itself already contain all functions it need? I just get confused now...>> I'm using Clang, with arm-none-linux-gnueabi-g++ as a linker. Although >> compiler-rt replaced libgcc, we still need other libs such as libc, >> libm, >> etc. It seems libc is calling these missing functions. > If you compile libc with gcc, then yes, you might need arbitrary > functions from libgcc. > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University >
Hello It seems you misses several points here...> So, you mean I should compile libc with clang and link with compiler-rt too? > But how can we expect a user of compiler-rt have a libc compiled in this > way? It's a part of gcc's src code...No it is not> If compiler-rt is a complete lib, it should also cover these functions, right?Yes and no. Yes - it should cover all library functions as defined by ARM EABI. Right now it misses some, but the calls to them are not generated by clang. No - in general it should not cover gcc's internal functions. Though it can cover *some* functions which are important. So, in your case we need to include _aeabi* and _sync* functions, yes. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University