Skip to content

Commit 9fd0670

Browse files
committed
add lib prefix to the shared object name
1 parent 11fe467 commit 9fd0670

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ CPPFLAGS += \
7979
-DREGION_QUARANTINE_SKIP_THRESHOLD=$(CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD) \
8080
-DFREE_SLABS_QUARANTINE_RANDOM_SIZE=$(CONFIG_FREE_SLABS_QUARANTINE_RANDOM_SIZE)
8181

82-
hardened_malloc.so: $(OBJECTS)
82+
libhardened_malloc.so: $(OBJECTS)
8383
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
8484

8585
chacha.o: chacha.c chacha.h util.h
@@ -94,6 +94,6 @@ tidy:
9494
clang-tidy $(TIDY_CHECKS) $(SOURCES) -- $(CPPFLAGS)
9595

9696
clean:
97-
rm -f hardened_malloc.so $(OBJECTS)
97+
rm -f libhardened_malloc.so $(OBJECTS)
9898

9999
.PHONY: clean tidy

preload.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
[[ $LD_PRELOAD ]] && LD_PRELOAD+=" "
5-
export LD_PRELOAD+="$dir/hardened_malloc.so"
5+
export LD_PRELOAD+="$dir/libhardened_malloc.so"
66
exec "$@"

0 commit comments

Comments
 (0)