Kernel keyring development
 help / color / mirror / Atom feed
* [keyutils] Remove undefined functions afrom version.lds
@ 2023-12-27 21:35 Nicholas Vinson
  2023-12-28  1:56 ` Ben Boeckel
  2024-01-03 14:12 ` Jarkko Sakkinen
  0 siblings, 2 replies; 9+ messages in thread
From: Nicholas Vinson @ 2023-12-27 21:35 UTC (permalink / raw)
  To: keyrings, dhowells; +Cc: Nicholas Vinson

Functions keyctl_restrict() and keyctl_dh_compute_kdf_alloc() are
nodefined. Their inclusion in version.lds causes clang/llvm LTO
optimizations to fail with error messages similar to

    error: version script assignment of KEYUTILS_1.7 to symbol
    keyctl_restrict failed: symbol not defined

This patch fixes the issue by removing the symbol names from
version.lds.

Fixes Gentoo bug 914637 (https://bugs.gentoo.org/914637)

Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
---
 version.lds | 2 --
 1 file changed, 2 deletions(-)

diff --git a/version.lds b/version.lds
index 6c34adf..6186fb6 100644
--- a/version.lds
+++ b/version.lds
@@ -76,9 +76,7 @@ KEYUTILS_1.6 {
 
 KEYUTILS_1.7 {
 	/* management functions */
-	keyctl_restrict;
 	keyctl_dh_compute_kdf;
-	keyctl_dh_compute_kdf_alloc;
 
 } KEYUTILS_1.6;
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-07-09 19:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-27 21:35 [keyutils] Remove undefined functions afrom version.lds Nicholas Vinson
2023-12-28  1:56 ` Ben Boeckel
2023-12-28  2:20   ` Nicholas Vinson
2024-01-03 14:16     ` Jarkko Sakkinen
2024-01-03 14:15   ` Jarkko Sakkinen
2024-01-03 14:12 ` Jarkko Sakkinen
2024-01-03 15:00   ` Nicholas Vinson
2024-03-04  6:06     ` Nicholas Vinson
2024-07-09 19:54       ` Nicholas Vinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox