added tests for malloc_object_size

LDFLAGS is on single line
This commit is contained in:
rwarr627 2020-06-08 19:21:17 -07:00 committed by Daniel Micay
parent 577524798e
commit 195bc8c92a
5 changed files with 48 additions and 1 deletions

View file

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