This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Optionally sanitize globals in user-defined sections
- From: Yury Gribov <y dot gribov at samsung dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Andrey Ryabinin <a dot ryabinin at samsung dot com>, Jakub Jelinek <jakub at redhat dot com>, Dmitry Vyukov <dvyukov at google dot com>
- Date: Fri, 17 Apr 2015 10:33:13 +0300
- Subject: [PATCH] Optionally sanitize globals in user-defined sections
- Authentication-results: sourceware.org; auth=none
Hi all,
This patch adds an optional support for sanitizing user-defined
sections. Usually this is a bad idea because ASan changes relative
position of variables in section thus breaking user assumptions. But
this is a desired feature for kernel which (ab)uses sections for various
reasons (cache optimizations, etc.).
Bootstrapped and reg-tested on x64. Ok for trunk?
Best regards,
Yury