Implemented possibility of assembling Glibc using LLVM tools

Engineers from Sollabora published a report on the implementation of the project to ensure assembly of the GNU C Library (GLIBC) system library using LLVM tools (Clang, LLD, Compiler-RT) instead of GCC. Until recently, Glibc has remained one of the significant components of distributions that support the assembly only using GCC.

difficulties Glibc adaptation for assembly using LLVM is caused as differences in the behavior of GCC and Clang when processing some structures (for example, expressions with a symbol of $ , invested functions, tags in ASM- blocks, types of Long Double and Float128), and the need to replace Runtime with LibGCC with compile -rt.

To ensure the assembly of GLIBC using LLVM, about 150 patches were prepared for Gentoo and 160 to surround Chromiumos. In the current lead, the assembly in Chromiumos is already successfully undergoing a test set, but has not yet been turned on by default. The next step will be the transfer of prepared changes to the main composition of GLIBC and LLVM, the continuation of testing and correcting pop -up atypical problems. Some of the patches have already been accepted into the Glibc 2.37.

/Media reports cited above.