]> granicus.if.org Git - clang/commit
[asan] A clang flag to enable ELF globals-gc.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 9 May 2017 21:57:43 +0000 (21:57 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 9 May 2017 21:57:43 +0000 (21:57 +0000)
commite432f10a18b41a9f30a89c608180683cdafe44cc
tree8b74c7fe89013333435147bfa30d307013d04c68
parentd47237c24841376ee85b02134d7263ddcaa249c8
[asan] A clang flag to enable ELF globals-gc.

This feature is subtly broken when the linker is gold 2.26 or
earlier. See the following bug for details:
  https://sourceware.org/bugzilla/show_bug.cgi?id=19002

Since the decision needs to be made at compilation time, we can not
test the linker version. The flag is off by default on ELF targets,
and on otherwise.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302591 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
include/clang/Driver/SanitizerArgs.h
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/BackendUtil.cpp
lib/Driver/SanitizerArgs.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/asan-globals-gc.cpp
test/Driver/fsanitize.c