]> dgit.raspbian.org Git - libaio.git/commit
[PATCH libaio 08/26] 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, 22 Mar 2026 03:45:17 +0000 (04:45 +0100)
commita70e546c16f35cd9048dfa5d43d8be46c3e3062f
tree962520b0f2f1dc77d9cf7dae0d1c08ef9c1ae59f
parentdee960fbe69b853de2cfe15e437930e1e5e22ae4
[PATCH libaio 08/26] 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.

Origin: vendor
Forwarded: https://marc.info/?l=linux-aio&m=164999309520544
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0008-Use-new-symver-function-attribute-to-support-LTO-bui.patch
src/compat-0_1.c
src/syscall.h