From 189d3362d5d0cc87f6b9daf3a4c5a9b921883a8c Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 16 Jan 2022 11:48:01 -0500 Subject: [PATCH] enable sized deallocation ABI for consistency --- Makefile | 2 +- test/simple-memory-corruption/Makefile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 29e6fe6..19d1e69 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ ifeq ($(CONFIG_NATIVE),true) endif CFLAGS := $(CFLAGS) -std=c17 $(SHARED_FLAGS) -Wmissing-prototypes -CXXFLAGS := $(CXXFLAGS) -std=c++17 $(SHARED_FLAGS) +CXXFLAGS := $(CXXFLAGS) -std=c++17 -fsized-deallocation $(SHARED_FLAGS) LDFLAGS := $(LDFLAGS) -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c diff --git a/test/simple-memory-corruption/Makefile b/test/simple-memory-corruption/Makefile index 22ca226..d13e3dd 100644 --- a/test/simple-memory-corruption/Makefile +++ b/test/simple-memory-corruption/Makefile @@ -1,7 +1,6 @@ dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) CONFIG_SLAB_CANARY := true -# Clang 13 still doesn't enable sized deallocation by default CXXFLAGS := -std=c++17 -fsized-deallocation ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))