From: Jérémie Galarneau Date: Mon, 26 Apr 2021 23:21:53 +0000 (-0400) Subject: Fix: common: hide shm* util symbols X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5fad4ed508b20b7850dc8333c55afeed6737d08c;p=lttng-tools.git Fix: common: hide shm* util symbols Internal symbols that are part of libcommon must be marked as "hidden". Otherwise, the symbols are exported as part of liblttng-ctl.so. Signed-off-by: Jérémie Galarneau Change-Id: I41e7746a8044e85a7d422f138654de1579bf22f1 --- diff --git a/src/common/shm.c b/src/common/shm.c index 647eeecbe..7ccc3c0bc 100644 --- a/src/common/shm.c +++ b/src/common/shm.c @@ -156,6 +156,7 @@ error: * This returned value is used by futex_wait_update() in futex.c to WAKE all * waiters which are UST application waiting for a session daemon. */ +LTTNG_HIDDEN char *shm_ust_get_mmap(char *shm_path, int global) { size_t mmap_size; @@ -202,6 +203,7 @@ error: /* * shm_create_anonymous is never called concurrently within a process. */ +LTTNG_HIDDEN int shm_create_anonymous(const char *owner_name) { char tmp_name[NAME_MAX]; diff --git a/src/common/shm.h b/src/common/shm.h index d714506b8..0798fabce 100644 --- a/src/common/shm.h +++ b/src/common/shm.h @@ -9,8 +9,10 @@ #ifndef _LTT_SHM_H #define _LTT_SHM_H +LTTNG_HIDDEN char *shm_ust_get_mmap(char *shm_path, int global); +LTTNG_HIDDEN int shm_create_anonymous(const char *owner_name); #endif /* _LTT_SHM_H */