apsun / loliOS

Lightweight & operational Linux-inspired OS.
33 stars 1 forks source link

UBSan doesn't work with clang #27

Open apsun opened 2 years ago

apsun commented 2 years ago

clang seems to insist on linking in the system libubsan even when we're compiling with -nostdlib.

Current workaround is to link the final executable with ld instead of cc when not using LTO, but that complicates our Makefile since the flags are different.