-
Notifications
You must be signed in to change notification settings - Fork 8.7k
AFL++ support for native simulator platform #103876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -34,6 +34,13 @@ | |||
| help | ||||
| Enables the reboot implementation for the native sim executable. | ||||
|
|
||||
| config ARCH_POSIX_AFLPLUSPLUS | ||||
| bool "Enable AFL++ support" | ||||
| default n | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
| help | ||||
| When selected, the AFL++ instrumentation will be enabled for the native | ||||
| simulator. | ||||
|
|
||||
| source "boards/native/common/sdl/Kconfig" | ||||
| source "boards/native/common/extra_args/Kconfig" | ||||
|
|
||||
|
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,13 @@ if(DEFINED TOOLCHAIN_HOME) | |
| set(find_program_clang_args PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH) | ||
| endif() | ||
|
|
||
| find_program(CMAKE_C_COMPILER clang ${find_program_clang_args}) | ||
| find_program(CMAKE_CXX_COMPILER clang++ ${find_program_clang_args}) | ||
| if(CONFIG_ARCH_POSIX_AFLPLUSPLUS) | ||
| find_program(CMAKE_C_COMPILER afl-clang-fast ${find_program_clang_args}) | ||
| find_program(CMAKE_CXX_COMPILER afl-clang-fast++ ${find_program_clang_args}) | ||
|
Comment on lines
+19
to
+20
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should not overwrite a given compiler this way behind the scenes of the user. |
||
| else() | ||
| find_program(CMAKE_C_COMPILER clang ${find_program_clang_args}) | ||
| find_program(CMAKE_CXX_COMPILER clang++ ${find_program_clang_args}) | ||
| endif() | ||
|
|
||
| if(SYSROOT_DIR) | ||
| # The toolchain has specified a sysroot dir, pass it to the compiler | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per https://docs.zephyrproject.org/latest/build/kconfig/tips.html#prompt-strings