mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-02 14:26:32 -04:00
finish migration away from config.h
This commit is contained in:
parent
06149aa156
commit
f3623e1f2b
6 changed files with 38 additions and 33 deletions
|
@ -1,3 +1,12 @@
|
|||
CONFIG_SLAB_CANARY := true
|
||||
|
||||
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
|
||||
$(error CONFIG_SLAB_CANARY must be true or false)
|
||||
endif
|
||||
|
||||
CPPFLAGS += \
|
||||
-DSLAB_CANARY=$(CONFIG_SLAB_CANARY)
|
||||
|
||||
EXECUTABLES := \
|
||||
offset
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
static unsigned size_classes[] = {
|
||||
/* large */ 4 * 1024 * 1024,
|
||||
/* 0 */ 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue