]> www.infradead.org Git - users/dwmw2/linux.git/commit
tools/nolibc: stackprotector: mark implicitly used symbols as used
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 12 Aug 2024 20:50:18 +0000 (22:50 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Fri, 16 Aug 2024 15:23:13 +0000 (17:23 +0200)
commitff7b9abbfce985b92f71c855246508edb0980cd6
treeb5e0dbc826196661d8249bea533f42d0feb9ab4c
parent0021d6670d1a997549a39bf629da9940bf4068ed
tools/nolibc: stackprotector: mark implicitly used symbols as used

During LTO the references from the compiler-generated prologue and
epilogues to the stack protector symbols are not visible and the symbols
are removed.
This will then lead to errors during linking.
As those symbols are already #ifdeffed-out if unused mark them as "used"
to prevent their removal.

Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20240812-nolibc-lto-v2-2-736af7bbefa8@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/stackprotector.h