]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/nolibc: crt: mark _start_c() as used
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 12 Aug 2024 20:50:17 +0000 (22:50 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Fri, 16 Aug 2024 15:23:13 +0000 (17:23 +0200)
commit0021d6670d1a997549a39bf629da9940bf4068ed
tree99b83b72baa95801e3a89a7bdcf02f2e22e7645c
parent22ba81c50a49468d80055674d8d6f78afb1c92c4
tools/nolibc: crt: mark _start_c() as used

During LTO the reference from the asm startup code to the _start_c()
function is not visible and _start_c() is removed.
This will then lead to errors during linking.
As _start_c() is indeed always used, mark it as such.

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