]> granicus.if.org Git - clang/commit
If a .syms file is available alongside a sanitizer runtime, pass it to the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 23 Mar 2013 00:30:08 +0000 (00:30 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 23 Mar 2013 00:30:08 +0000 (00:30 +0000)
commit76e6e1377ff837047fb8e03a199c7f286c53897b
treeb92060a34a05a42069c381376162f3864e987878
parent984f2783ad8319aa0cbfca1c4a719688b1ecfd5e
If a .syms file is available alongside a sanitizer runtime, pass it to the
linker via --dynamic-list instead of using --export-dynamic. This reduces the
size of the dynamic symbol table, and thus of the binary (in some cases by up
to ~30%).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177783 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/Driver/Driver.cpp
lib/Driver/Tools.cpp
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.asan-i386.a.syms [new file with mode: 0644]
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.asan-x86_64.a.syms [new file with mode: 0644]
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.msan-x86_64.a.syms [new file with mode: 0644]
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.tsan-x86_64.a.syms [new file with mode: 0644]
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.ubsan-i386.a.syms [new file with mode: 0644]
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.ubsan-x86_64.a.syms [new file with mode: 0644]
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.ubsan_cxx-i386.a.syms [new file with mode: 0644]
test/Driver/Inputs/resource_dir/lib/linux/libclang_rt.ubsan_cxx-x86_64.a.syms [new file with mode: 0644]
test/Driver/sanitizer-ld.c