From 77d70250dfac64646f5bfb50d4a8c94cd04edeb8 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sun, 28 Jul 2019 19:28:28 +0000 Subject: [PATCH] set SONAME fixes https://github.com/GrapheneOS/hardened_malloc/issues/86 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6fb43fb..6701752 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ endif CFLAGS := -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes CXXFLAGS := $(call safe_flag,-std=c++17,-std=c++14) $(SHARED_FLAGS) -LDFLAGS := -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text +LDFLAGS := $(LDFLAGS) -Wl,-soname=libhardened_malloc.so,--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-magic-numbers,-readability-named-parameter,-bugprone-too-small-loop-variable SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c