Skip to content

Conversation

@vmezzela
Copy link

@vmezzela vmezzela commented Dec 5, 2023

In the scenario where we're using LLVM installed on a custom toolchain, afl-cc sets the option -Wl,-rpath <LLVM_LIBDIR>:

cc_params[cc_par_cnt++] = "-Wl,-rpath";
cc_params[cc_par_cnt++] = <LLVM_LIBDIR>;

This is not working and I guess the problem is that the option to the linker should be passed using one of the two ways:

  • -Wl,-rpath=<LLVM_LIBDIR>
  • -Wl,-rpath,<LLVM_LIBDIR>

Both ways worked fine on my toolchain.

@vanhauser-thc
Copy link
Member

thank you

@vanhauser-thc vanhauser-thc merged commit 5482204 into AFLplusplus:dev Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants