about summary refs log tree commit diff
path: root/llvm_mode/afl-clang-fast.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm_mode/afl-clang-fast.c')
-rw-r--r--llvm_mode/afl-clang-fast.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index 8aef68ef..73e8ec57 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -296,6 +296,8 @@ static void edit_params(u32 argc, char** argv) {
 
   if (maybe_linking) {
 
+    cc_params[cc_par_cnt++] = "-Wl,-znodelete";
+
     if (x_set) {
       cc_params[cc_par_cnt++] = "-x";
       cc_params[cc_par_cnt++] = "none";
@@ -372,6 +374,14 @@ int main(int argc, char** argv) {
 
   edit_params(argc, argv);
 
+/*
+  int i = 0;
+  printf("EXEC:");
+  while (cc_params[i] != NULL)
+    printf(" %s", cc_params[i++]);
+  printf("\n");
+*/
+
   execvp(cc_params[0], (char**)cc_params);
 
   FATAL("Oops, failed to execute '%s' - check your PATH", cc_params[0]);