enable sized deallocation ABI for consistency
This commit is contained in:
parent
e2bcf4a356
commit
189d3362d5
2
Makefile
2
Makefile
@ -31,7 +31,7 @@ ifeq ($(CONFIG_NATIVE),true)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS := $(CFLAGS) -std=c17 $(SHARED_FLAGS) -Wmissing-prototypes
|
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
|
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
|
SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
CONFIG_SLAB_CANARY := true
|
CONFIG_SLAB_CANARY := true
|
||||||
# Clang 13 still doesn't enable sized deallocation by default
|
|
||||||
CXXFLAGS := -std=c++17 -fsized-deallocation
|
CXXFLAGS := -std=c++17 -fsized-deallocation
|
||||||
|
|
||||||
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
|
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
|
||||||
|
Loading…
Reference in New Issue
Block a user