mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
7 lines
290 B
Bash
Executable file
7 lines
290 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# preload.sh - Test dynamically linked executables
|
|
|
|
[ -n "${LD_PRELOAD}" ] && LD_PRELOAD="${LD_PRELOAD} " # If LD_PRELOAD is already set, add a space.
|
|
export LD_PRELOAD="${LD_PRELOAD}${PWD}/out/libhardened_malloc.so" # Add the library to LD_PRELOAD.
|
|
exec "$@" # Run the command.
|