Skip to content
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

Support ASAN (-fsanitize=address) for xtensa target #51

Closed
paulreimer opened this issue Dec 2, 2017 · 2 comments
Closed

Support ASAN (-fsanitize=address) for xtensa target #51

paulreimer opened this issue Dec 2, 2017 · 2 comments

Comments

@paulreimer
Copy link

Not sure what is involved, but I know that ASAN support on x86 is amazing for finding tricky bugs, and I'd love to run it on my ESP32 debug builds.

I'm not sure what is involved in adding it for a new target. The current state seems to be a compiler warning (after adding -fsanitize=address to CXXFLAGS):

warning: -fsanitize=address not supported for this target
@jcmvbkbc
Copy link
Owner

jcmvbkbc commented Dec 2, 2017

It does not belong to the crosstool-ng, the gcc and libsanitizer bundled with it need to be modified so please move it to xtensa-gcc.
Also compiling with ASAN results in higher memory requirements: according to https://github.com/google/sanitizers/wiki/AddressSanitizerAlgorithm it requires 1/8 of used memory for its shadow map.

@jcmvbkbc jcmvbkbc closed this as completed Dec 2, 2017
@paulreimer
Copy link
Author

Thanks @jcmvbkbc, I have added it here:
jcmvbkbc/gcc-xtensa#9

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

No branches or pull requests

2 participants