mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-10-28 08:46:36 +08:00
Use portable nm output for private symbols
This commit is contained in:
1 parent
b889beca7c
commit
e26f8ddeb1
2 files changed
+1
-19
No files matched your search
+1
-3
@@ -784,7 +784,7 @@ dnl to make happen otherwise.
|
||||
default_retain="0"
|
||||
zero_realloc_default_free="0"
|
||||
maps_coalesce="1"
|
||||
DUMP_SYMS="${NM}"
|
||||
DUMP_SYMS="${NM} -P -t d"
|
||||
SYM_PREFIX=""
|
||||
case "${host}" in
|
||||
*-*-darwin* | *-*-ios*)
|
||||
@@ -882,8 +882,6 @@ case "${host}" in
|
||||
*-*-solaris2*)
|
||||
abi="elf"
|
||||
RPATH='-Wl,-R,$(1)'
|
||||
dnl Solaris nm does not support -a, so use POSIX portable output.
|
||||
DUMP_SYMS="${NM} -P -t d"
|
||||
dnl Solaris needs this for sigwait().
|
||||
JE_APPEND_VS(CPPFLAGS, -D_POSIX_PTHREAD_SEMANTICS)
|
||||
JE_APPEND_VS(LIBS, -lposix4 -lsocket -lnsl)
|
||||
|
||||
@@ -47,22 +47,6 @@ cat <<"EOF"
|
||||
next
|
||||
}
|
||||
|
||||
# Do not interpret other portable-format records as legacy-format records.
|
||||
((NF == 3 || NF == 4) &&
|
||||
$2 ~ /^[A-Za-z?]$/ &&
|
||||
$3 ~ /^[0-9]+$/) {
|
||||
next
|
||||
}
|
||||
|
||||
# Process 'nm <c_source.o>' output.
|
||||
#
|
||||
# Handle lines like:
|
||||
# 0000000000000008 D opt_junk
|
||||
# 0000000000007574 T malloc_initialized
|
||||
(NF == 3 && $2 ~ /^[ABCDGRSTVW]$/ && !($3 in exported_symbols) && $3 ~ /^[A-Za-z0-9_]+$/) {
|
||||
print substr($3, 1+length(sym_prefix), length($3)-length(sym_prefix))
|
||||
}
|
||||
|
||||
# Process 'dumpbin /SYMBOLS <c_source.obj>' output.
|
||||
#
|
||||
# Handle lines like:
|
||||
|
||||
Reference in new issue
Block a user