[PATCH] D44121: [scudo] Use gc-sections by default
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 6 12:15:59 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT326833: [scudo] Use gc-sections by default (authored by cryptoad, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D44121?vs=137094&id=137243#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D44121
Files:
lib/scudo/CMakeLists.txt
Index: lib/scudo/CMakeLists.txt
===================================================================
--- lib/scudo/CMakeLists.txt
+++ lib/scudo/CMakeLists.txt
@@ -9,6 +9,10 @@
set(SCUDO_DYNAMIC_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
+# Use gc-sections by default to avoid unused code being pulled in.
+list(APPEND SCUDO_CFLAGS -ffunction-sections -fdata-sections)
+list(APPEND SCUDO_DYNAMIC_LINK_FLAGS -Wl,--gc-sections)
+
set(SCUDO_SOURCES
scudo_allocator.cpp
scudo_crc32.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44121.137243.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180306/9fcdf9d3/attachment.bin>
More information about the llvm-commits
mailing list