From 5fad4ed508b20b7850dc8333c55afeed6737d08c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 26 Apr 2021 19:21:53 -0400 Subject: [PATCH] Fix: common: hide shm* util symbols MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/common/shm.c | 2 ++ src/common/shm.h | 2 ++ 2 files changed, 4 insertions(+) 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 */ -- 2.34.1