Re: [PATCH] hwasan: Add libhwasan_preinit.o

2022-12-16 Thread Jeff Law via Gcc-patches
On 12/16/22 03:27, Jakub Jelinek via Gcc-patches wrote: Hi! I've noticed an inconsistency with the other sanitizers. For -fsanitize={address,thread,leak} we link into binaries lib*san_preinit.o such that the -lasan, -ltsan or -llsan libraries are initialized as early as possible through .prei

[PATCH] hwasan: Add libhwasan_preinit.o

2022-12-16 Thread Jakub Jelinek via Gcc-patches
Hi! I've noticed an inconsistency with the other sanitizers. For -fsanitize={address,thread,leak} we link into binaries lib*san_preinit.o such that the -lasan, -ltsan or -llsan libraries are initialized as early as possible through .preinit_array. The hwasan library has the same thing, but we stra