if( (vg_compiler.compiler == k_compiler_gcc) ||
(vg_compiler.compiler == k_compiler_clang ) )
{
- strcat( cmd, "-rdynamic -fsanitize=address " );
+ strcat( cmd, "-rdynamic -fsanitize=address "
+ "-fPIE -fstack-protector-strong " );
}
strcat( cmd, "\\\n" );
/* Warnings */
strcat( cmd,
" -Wall\\\n"
- " -Wno-unused-function -Wno-unused-variable\\\n"
- " -Wno-unused-command-line-argument -Wno-unused-but-set-variable\\\n"
+ " -Wno-unused-function -Wno-unused-variable -Wno-format-truncation\\\n"
+ " -Wno-unused-command-line-argument -Wno-unused-but-set-variable\\\n"
);
if( vg_compiler.compiler == k_compiler_clang ){