diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-10-12 00:37:38 +0200 |
---|---|---|
committer | Thomas Weißschuh <linux@weissschuh.net> | 2023-10-12 21:13:51 +0200 |
commit | 921992229b1f06df6b649860e4a5f3def1489866 (patch) | |
tree | 3fe95a90ce13ef2b52e2e8a7d210727528318206 /fs | |
parent | 513bd2788e4994f6187d22b2fd0d25c3cfbeb87a (diff) |
tools/nolibc: mark start_c as weak
Otherwise the different instances of _start_c from each compilation unit
will lead to linker errors:
/usr/bin/ld: /tmp/ccSNvRqs.o: in function `_start_c':
nolibc-test-foo.c:(.text.nolibc_memset+0x9): multiple definition of `_start_c'; /tmp/ccG25101.o:nolibc-test.c:(.text+0x1ea3): first defined here
Fixes: 17336755150b ("tools/nolibc: add new crt.h with _start_c")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/lkml/20231012-nolibc-start_c-multiple-v1-1-fbfc73e0283f@weissschuh.net/
Link: https://lore.kernel.org/lkml/20231012-nolibc-linkage-test-v1-1-315e682768b4@weissschuh.net/
Acked-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions