From 2eca7224d32c51195a36db008ff0ccae069b4dee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Jul 2023 07:37:57 +1000 Subject: [PATCH] waf: wrap _sbrk to prevent its use while _sbrk isn't used now, this will prevent a repeat of the bug in PR 24218 --- Tools/ardupilotwaf/chibios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index 7f141d3c51..83c41cb81d 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -718,6 +718,6 @@ def build(bld): 'clearerr', 'fseek', 'ferror', 'fclose', 'tmpfile', 'getc', 'ungetc', 'feof', 'ftell', 'freopen', 'remove', 'vfprintf', 'fscanf', '_gettimeofday', '_times', '_times_r', '_gettimeofday_r', 'time', 'clock', - '_sbrk_r', '_malloc_r', '_calloc_r', '_free_r'] + '_sbrk', '_sbrk_r', '_malloc_r', '_calloc_r', '_free_r'] for w in wraplist: bld.env.LINKFLAGS += ['-Wl,--wrap,%s' % w]