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 <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2024-07-09 17:51:04 +01:00
committed by Richard Purdie
parent 504cc9860e
commit 4e96673ae2

View File

@@ -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"