mirror of
https://git.yoctoproject.org/poky
synced 2026-06-10 16:10:04 +00:00
lltng-tools: Fix build with lld linker
liblttng-ctl is exposting undefined symbols which are provided by libcommon-gpl.a and is not linked into liblttng-ctl.so (From OE-Core rev: a555a7525beebd4a6103755a6e6df6aa2e4ee7de) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
+43
@@ -0,0 +1,43 @@
|
||||
From adafa15a0ea145e1e98f68e2a56512e83f1f6798 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 19 Aug 2025 20:06:21 -0700
|
||||
Subject: [PATCH] liblttng-ctl: drop index allocator symbols from version
|
||||
script
|
||||
|
||||
The lttng_index_allocator_* functions are implemented in libcommon-gpl,
|
||||
not in liblttng-ctl. Since liblttng-ctl does not link against
|
||||
libcommon-gpl and does not export these symbols, referencing them in
|
||||
liblttng-ctl.sym causes link failures with LLD:
|
||||
|
||||
ld.lld: error: version script assignment of 'global' to symbol
|
||||
'lttng_index_allocator_alloc' failed: symbol not defined
|
||||
...
|
||||
|
||||
Remove these entries from the version script to align the exported ABI
|
||||
with the actual symbols provided by liblttng-ctl.
|
||||
|
||||
This fixes builds with clang + lld.
|
||||
|
||||
Upstream-Status: Submitted [https://review.lttng.org/c/lttng-tools/+/15156]
|
||||
Change-Id: I27f40f3d38af7014cf5356230e06aa291c9a3c5f
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/lib/lttng-ctl/liblttng-ctl.sym | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/src/lib/lttng-ctl/liblttng-ctl.sym b/src/lib/lttng-ctl/liblttng-ctl.sym
|
||||
index 27900ca44..641084750 100644
|
||||
--- a/src/lib/lttng-ctl/liblttng-ctl.sym
|
||||
+++ b/src/lib/lttng-ctl/liblttng-ctl.sym
|
||||
@@ -336,11 +336,6 @@ lttng_health_state
|
||||
lttng_health_thread_name
|
||||
lttng_health_thread_state
|
||||
lttng_ht_seed
|
||||
-lttng_index_allocator_alloc
|
||||
-lttng_index_allocator_create
|
||||
-lttng_index_allocator_destroy
|
||||
-lttng_index_allocator_get_index_count
|
||||
-lttng_index_allocator_release
|
||||
lttng_kernel_probe_location_address_create
|
||||
lttng_kernel_probe_location_address_get_address
|
||||
lttng_kernel_probe_location_destroy
|
||||
@@ -52,6 +52,7 @@ SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
|
||||
file://0001-gen-ust-events-constructor-change-rpath-to-libdir-li.patch \
|
||||
file://0001-eventfd.cpp-Remove-the-scope-resolution-operator.patch \
|
||||
file://disable-tests2.patch \
|
||||
file://0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "d8c39c26cec13b7bd82551cd52a22efc358b888e36ebcf9c1b60ef1c3a3c2fd3"
|
||||
|
||||
Reference in New Issue
Block a user