add lib prefix to the shared object name
This commit is contained in:
parent
11fe467b7c
commit
9fd0670aac
4
Makefile
4
Makefile
@ -79,7 +79,7 @@ CPPFLAGS += \
|
|||||||
-DREGION_QUARANTINE_SKIP_THRESHOLD=$(CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD) \
|
-DREGION_QUARANTINE_SKIP_THRESHOLD=$(CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD) \
|
||||||
-DFREE_SLABS_QUARANTINE_RANDOM_SIZE=$(CONFIG_FREE_SLABS_QUARANTINE_RANDOM_SIZE)
|
-DFREE_SLABS_QUARANTINE_RANDOM_SIZE=$(CONFIG_FREE_SLABS_QUARANTINE_RANDOM_SIZE)
|
||||||
|
|
||||||
hardened_malloc.so: $(OBJECTS)
|
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
|
||||||
@ -94,6 +94,6 @@ tidy:
|
|||||||
clang-tidy $(TIDY_CHECKS) $(SOURCES) -- $(CPPFLAGS)
|
clang-tidy $(TIDY_CHECKS) $(SOURCES) -- $(CPPFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f hardened_malloc.so $(OBJECTS)
|
rm -f libhardened_malloc.so $(OBJECTS)
|
||||||
|
|
||||||
.PHONY: clean tidy
|
.PHONY: clean tidy
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
[[ $LD_PRELOAD ]] && LD_PRELOAD+=" "
|
[[ $LD_PRELOAD ]] && LD_PRELOAD+=" "
|
||||||
export LD_PRELOAD+="$dir/hardened_malloc.so"
|
export LD_PRELOAD+="$dir/libhardened_malloc.so"
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user