waf: wrap _sbrk to prevent its use

while _sbrk isn't used now, this will prevent a repeat of the bug in
PR 24218
This commit is contained in:
Andrew Tridgell 2023-07-05 07:37:57 +10:00 committed by Peter Barker
parent 9c15dcb206
commit 2eca7224d3
1 changed files with 1 additions and 1 deletions

View File

@ -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]