Skip to content

Fix error handling in libafl_qemu_build #2036

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

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

vringar
Copy link
Contributor

@vringar vringar commented Apr 10, 2024

This doesn't fix the entire problem, but fixes it for my use case.
It also sets the environment variables for the make part of the build as well to ensure that the correct compiler is picked up here:

https://github.com/AFLplusplus/qemu-libafl-bridge/blob/ce4dbbc51390f86bad0a6e6cec52e5ed9cc34c85/linker_interceptor.py#L7-L9

Related to #2035

vringar added 3 commits April 10, 2024 15:54
…ect compiler

Currently linker_interceptor.py uses 'cc' as the __LIBAFL_QEMU_BUILD_CC environment variable is never set
@domenukk
Copy link
Member

Looks good, thx!

@domenukk domenukk merged commit 48463d0 into AFLplusplus:main Apr 10, 2024
78 checks passed
@vringar vringar deleted the fix/build_script_error_handling branch April 11, 2024 11:01
rmalmain pushed a commit that referenced this pull request Apr 11, 2024
* fix(libafl_qemu_build): assert command success

* fix(libafl_qemu_build): make sure linker_interceptor.py picks up correct compiler

Currently linker_interceptor.py uses 'cc' as the __LIBAFL_QEMU_BUILD_CC environment variable is never set

* remove redudant arg
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