mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-20 15:10:32 -04:00
added tests for malloc_object_size
LDFLAGS is on single line
This commit is contained in:
parent
577524798e
commit
195bc8c92a
5 changed files with 48 additions and 1 deletions
|
@ -1,3 +1,17 @@
|
|||
dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||
|
||||
CONFIG_SLAB_CANARY := true
|
||||
|
||||
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
|
||||
$(error CONFIG_SLAB_CANARY must be true or false)
|
||||
endif
|
||||
|
||||
CFLAGS += -DSLAB_CANARY=$(CONFIG_SLAB_CANARY)
|
||||
|
||||
LDLIBS := -lhardened_malloc
|
||||
|
||||
LDFLAGS := -Wl,-L$(dir)../../,-R,$(dir)../../
|
||||
|
||||
EXECUTABLES := \
|
||||
double_free_large \
|
||||
double_free_large_delayed \
|
||||
|
@ -26,7 +40,9 @@ EXECUTABLES := \
|
|||
delete_type_size_mismatch \
|
||||
unaligned_malloc_usable_size_small \
|
||||
invalid_malloc_usable_size_small \
|
||||
invalid_malloc_usable_size_small_quarantine
|
||||
invalid_malloc_usable_size_small_quarantine \
|
||||
malloc_object_size \
|
||||
malloc_object_size_offset
|
||||
|
||||
all: $(EXECUTABLES)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue