Skip to content

Commit

Permalink
libc: Move stack check stuff from libc/stdlib/ to libc/assert/
Browse files Browse the repository at this point in the history
since the new location is more reasonable

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 committed Feb 20, 2021
1 parent 6b83f6a commit 36761f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions libs/libc/assert/Make.defs
Expand Up @@ -20,6 +20,10 @@

CSRCS += lib_assert.c

ifeq ($(CONFIG_STACK_CANARIES),y)
CSRCS += lib_stackchk.c
endif

# Add the assert directory to the build

DEPPATH += --dep-path assert
Expand Down
@@ -1,5 +1,5 @@
/****************************************************************************
* libs/libc/stdlib/lib_stackchk.c
* libs/libc/assert/lib_stackchk.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand Down
4 changes: 0 additions & 4 deletions libs/libc/stdlib/Make.defs
Expand Up @@ -36,10 +36,6 @@ ifeq ($(CONFIG_PSEUDOTERM_SUSV1),y)
CSRCS += lib_ptsname.c lib_ptsnamer.c
endif

ifeq ($(CONFIG_STACK_CANARIES),y)
CSRCS += lib_stackchk.c
endif

ifeq ($(CONFIG_PSEUDOTERM),y)
CSRCS += lib_unlockpt.c
endif
Expand Down

0 comments on commit 36761f9

Please sign in to comment.