-fsanitize=undefined in a freestanding environment

Zdenek Sojka zsojka@seznam.cz
Wed May 18 07:25:00 GMT 2016


Hello,

I would like to use asan in a freestanding environment. According to link errors, it should be enough to provide functions like:
__ubsan_handle_type_mismatch
__ubsan_handle_out_of_bounds
__ubsan_handle_sub_overflow
__ubsan_handle_add_overflow

etc.

Is there such an implementation somewhere? Or is it even possible to configure GCC to build the asan for a generic "elf" target? (just adding --enable-libsanitizer to configure does "nothing")

Thanks,
Zdenek


More information about the Gcc-help mailing list