Re: [PATCH v2] [aarch64] Fix function multiversioning dispatcher link error with LTO

2024-10-29 Thread Richard Sandiford
Yangyu Chen writes: > We forgot to apply DECL_EXTERNAL to __init_cpu_features_resolver decl. When > building with LTO, the linker cannot find the > __init_cpu_features_resolver.lto_priv* symbol, causing the link error. > > This patch get this fixed by adding DECL_EXTERNAL to the decl. To avoid use

[PATCH v2] [aarch64] Fix function multiversioning dispatcher link error with LTO

2024-10-27 Thread Yangyu Chen
We forgot to apply DECL_EXTERNAL to __init_cpu_features_resolver decl. When building with LTO, the linker cannot find the __init_cpu_features_resolver.lto_priv* symbol, causing the link error. This patch get this fixed by adding DECL_EXTERNAL to the decl. To avoid used but never defined warning fo