[PATCH libaio 05/14] 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)
committerGuillem Jover <guillem@debian.org>
Sun, 4 Dec 2022 17:06:09 +0000 (17:06 +0000)
commita919273994655358c20aeb70c68017efa6a99e6c
tree06b78969e298906125b7380e07fb839906340bed
parent095b54c44b7f4e7941da00ffa20c07617fe2335b
[PATCH libaio 05/14] 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 0005-Use-new-symver-function-attribute-to-support-LTO-bui.patch
src/compat-0_1.c
src/syscall.h