diff options
author | Rodrigo Campos <rodrigo@sdfg.com.ar> | 2024-02-18 16:51:03 -0300 |
---|---|---|
committer | Thomas Weißschuh <linux@weissschuh.net> | 2024-04-10 23:19:01 +0200 |
commit | 689230b674188163fe56b3aecd7d01f79ca518e6 (patch) | |
tree | a878e61f9096225807ea85abc67364e74aade905 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 791f4641142e2aced85de082e5783b4fb0b977c2 (diff) |
tools/nolibc/string: export strlen()
As with commit 8d304a374023, "tools/nolibc/string: export memset() and
memmove()", gcc -Os without -ffreestanding may fail to compile with:
cc -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib -lgcc -static -o test test.c
/usr/bin/ld: /tmp/cccIasKL.o: in function `main':
test.c:(.text.startup+0x1e): undefined reference to `strlen'
collect2: error: ld returned 1 exit status
As on the aforementioned commit, this patch adds a section to export
this function so compilation works on those cases too.
Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions