[PATCH 2/2] Use new symver function attribute to support LTO builds
authorGuillem Jover <guillem@hadrons.org>
Tue, 2 Nov 2021 21:37:32 +0000 (22:37 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Mon, 15 Nov 2021 00:13:31 +0000 (00:13 +0000)
commit1eeee903cc861288c245ea0af5dc4e78b0962f4e
tree80a3da5d1ec8767931f9dd401967a75811e301b6
parent9a282928a4777bcb54707f9f868b5dae3795c4e9
[PATCH 2/2] Use new symver function attribute to support LTO builds

The LTO support cannot work properly when there are versioned symbols
via asm statements, as those are not seen by the compiler. Use the new
function attributes if supported instead of the asm statements.

We need to move the SYMVER calls after the function definitions
otherwise it will reference symbols not yet seen.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0002-Use-new-symver-function-attribute-to-support-LTO-bui.patch
src/compat-0_1.c
src/syscall.h