re PR sanitizer/81697 (Incorrect ASan global variables alignment on arm)
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Thu, 30 Nov 2017 21:38:16 +0000 (21:38 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Thu, 30 Nov 2017 21:38:16 +0000 (23:38 +0200)
commit1069dc251bd97f187ff42b543ca90e08203465ae
tree3885b39c1cc27358616aae7eb80eaf44a07faa7d
parent75ad35b5c4a40ff92ead1ea49aebf68cafe2fa12
re PR sanitizer/81697 (Incorrect ASan global variables alignment on arm)

gcc/

2017-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR sanitizer/81697
* asan.c (asan_protect_global): Add new ignore_decl_rtl_set_p
parameter. Return true if ignore_decl_rtl_set_p is true and other
conditions are satisfied.
* asan.h (asan_protect_global): Add new parameter.
* varasm.c (categorize_decl_for_section): Pass true as second parameter
to asan_protect_global calls.

gcc/testsuite/

2017-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR sanitizer/81697
* c-c++-common/asan/pr81697.c: New test.

From-SVN: r255283
gcc/ChangeLog
gcc/asan.c
gcc/asan.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/pr81697.c [new file with mode: 0644]
gcc/varasm.c