From 4e96673ae25c75ccc533d0cefa14d2f47671ac67 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 9 Jul 2024 17:51:04 +0100 Subject: glibc: add task to list exported symbols When upgrading glibc it's important to know if there are any new symbols that pseudo needs to wrap. In the future a generalised ABI comparison tool would be good, but to solve the immediate need we can simply list the exported symbols to files in WORKDIR. (From OE-Core rev: 395e057743f04e5ee862d790dcfce026220a2699) Signed-off-by: Ross Burton Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-core/glibc/glibc_2.39.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/meta/recipes-core/glibc/glibc_2.39.bb b/meta/recipes-core/glibc/glibc_2.39.bb index 2484ae1cd9..411d226ef6 100644 --- a/meta/recipes-core/glibc/glibc_2.39.bb +++ b/meta/recipes-core/glibc/glibc_2.39.bb @@ -128,4 +128,15 @@ do_compile () { require glibc-package.inc +# When upgrading glibc it's important to know if there are any new symbols +# that pseudo needs to wrap. In the future a generalised ABI comparison tool +# would be good, but to solve the immediate need we can simply list the +# exported symbols to files in WORKDIR. +do_symlist() { + for LIB in ${D}${base_libdir}/lib*.so.*; do + ${NM} --dynamic $LIB | awk --source '$2 == "T" { print $3 }' | sort > ${WORKDIR}/$(basename $LIB)-${PV}.symbols + done +} +addtask symlist after do_install + BBCLASSEXTEND = "nativesdk" -- cgit v1.2.3-54-g00ecf