disambiguate malloc.h
parent
f90fb3199d
commit
79cf5cbeb4
6
Makefile
6
Makefile
|
@ -31,7 +31,7 @@ CXXFLAGS := -std=c++14 $(SHARED_FLAGS)
|
||||||
LDFLAGS := -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
|
LDFLAGS := -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
|
||||||
TIDY_CHECKS := -checks=bugprone-*,-bugprone-macro-parentheses,cert-*,clang-analyzer-*,readability-*,-readability-inconsistent-declaration-parameter-name,-readability-named-parameter
|
TIDY_CHECKS := -checks=bugprone-*,-bugprone-macro-parentheses,cert-*,clang-analyzer-*,readability-*,-readability-inconsistent-declaration-parameter-name,-readability-named-parameter
|
||||||
|
|
||||||
SOURCES := chacha.c malloc.c memory.c pages.c random.c util.c
|
SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c
|
||||||
OBJECTS := $(SOURCES:.c=.o)
|
OBJECTS := $(SOURCES:.c=.o)
|
||||||
|
|
||||||
ifeq ($(CONFIG_CXX_ALLOCATOR),true)
|
ifeq ($(CONFIG_CXX_ALLOCATOR),true)
|
||||||
|
@ -83,9 +83,9 @@ libhardened_malloc.so: $(OBJECTS)
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
|
||||||
|
|
||||||
chacha.o: chacha.c chacha.h util.h
|
chacha.o: chacha.c chacha.h util.h
|
||||||
malloc.o: malloc.c malloc.h mutex.h memory.h pages.h random.h util.h
|
h_malloc.o: h_malloc.c h_malloc.h mutex.h memory.h pages.h random.h util.h
|
||||||
memory.o: memory.c memory.h util.h
|
memory.o: memory.c memory.h util.h
|
||||||
new.o: new.cc malloc.h util.h
|
new.o: new.cc h_malloc.h util.h
|
||||||
pages.o: pages.c pages.h memory.h util.h
|
pages.o: pages.c pages.h memory.h util.h
|
||||||
random.o: random.c random.h chacha.h util.h
|
random.o: random.c random.h chacha.h util.h
|
||||||
util.o: util.c util.h
|
util.o: util.c util.h
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#include "third_party/libdivide.h"
|
#include "third_party/libdivide.h"
|
||||||
|
|
||||||
#include "malloc.h"
|
#include "h_malloc.h"
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
#include "pages.h"
|
#include "pages.h"
|
Loading…
Reference in New Issue