diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-07-09 17:51:04 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-16 11:56:53 +0100 |
| commit | 4e96673ae25c75ccc533d0cefa14d2f47671ac67 (patch) | |
| tree | 95103abfe028ce211bcc38e305b819115f8af73f /meta | |
| parent | 504cc9860e41887f73830e74372d03869e4cb970 (diff) | |
| download | poky-4e96673ae25c75ccc533d0cefa14d2f47671ac67.tar.gz | |
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/glibc/glibc_2.39.bb | 11 |
1 files changed, 11 insertions, 0 deletions
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 () { | |||
| 128 | 128 | ||
| 129 | require glibc-package.inc | 129 | require glibc-package.inc |
| 130 | 130 | ||
| 131 | # When upgrading glibc it's important to know if there are any new symbols | ||
| 132 | # that pseudo needs to wrap. In the future a generalised ABI comparison tool | ||
| 133 | # would be good, but to solve the immediate need we can simply list the | ||
| 134 | # exported symbols to files in WORKDIR. | ||
| 135 | do_symlist() { | ||
| 136 | for LIB in ${D}${base_libdir}/lib*.so.*; do | ||
| 137 | ${NM} --dynamic $LIB | awk --source '$2 == "T" { print $3 }' | sort > ${WORKDIR}/$(basename $LIB)-${PV}.symbols | ||
| 138 | done | ||
| 139 | } | ||
| 140 | addtask symlist after do_install | ||
| 141 | |||
| 131 | BBCLASSEXTEND = "nativesdk" | 142 | BBCLASSEXTEND = "nativesdk" |
