Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864623
D6361.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D6361.diff
View Options
diff --git a/contrib/devtools/symbol-check.py b/contrib/devtools/symbol-check.py
--- a/contrib/devtools/symbol-check.py
+++ b/contrib/devtools/symbol-check.py
@@ -48,6 +48,11 @@
# Ignore symbols that are exported as part of every executable
IGNORE_EXPORTS = {
'_edata', '_end', '__end__', '_init', '__bss_start', '__bss_start__', '_bss_end__', '__bss_end__', '_fini', '_IO_stdin_used', 'stdin', 'stdout', 'stderr',
+ # Jemalloc exported symbols
+ '__malloc_hook', 'malloc', 'calloc', 'malloc_usable_size',
+ '__free_hook', 'free',
+ '__realloc_hook', 'realloc',
+ '__memalign_hook', 'memalign', 'posix_memalign', 'aligned_alloc', 'valloc',
# Figure out why we get these symbols exported on xenial.
'_ZNKSt5ctypeIcE8do_widenEc', 'in6addr_any', 'optarg',
'_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_destroyEv'
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -117,7 +117,7 @@
endif()
# Also hide symbols from static libraries
- add_linker_flags(-Wl,--exclude-libs,ALL)
+ add_linker_flags(-Wl,--exclude-libs,libstdc++)
endif()
# Enable statically linking libstdc++
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 21:13 (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5865935
Default Alt Text
D6361.diff (1 KB)
Attached To
D6361: Remove symbols exported by jemalloc from the symbols check
Event Timeline
Log In to Comment