This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: asan: support for globals in kernel
- From: Dmitry Vyukov <dvyukov at google dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Andrey Ryabinin <a dot ryabinin at samsung dot com>, Dodji Seketeli <dodji at redhat dot com>, Yury Gribov <y dot gribov at samsung dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Kostya Serebryany <kcc at google dot com>, Dmitry Chernenkov <dmitryc at google dot com>, Andrey Konovalov <andreyknvl at google dot com>
- Date: Thu, 4 Dec 2014 23:14:58 +0400
- Subject: Re: asan: support for globals in kernel
- Authentication-results: sourceware.org; auth=none
- References: <CACT4Y+Z=RCYyAu3tBH2DMW9pgY+XDfcgsYRMa9mhw7eS7=DzLw at mail dot gmail dot com> <547EAB6D dot 5030705 at samsung dot com> <CACT4Y+ZVa_JGi986DgL-H_O9z8b0fEdYgjFQ5G89pjQYBDzgUw at mail dot gmail dot com> <20141204191214 dot GG1923 at tucnak dot redhat dot com>
will wait for Andrey this time
On Thu, Dec 4, 2014 at 10:12 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Thu, Dec 04, 2014 at 11:10:15PM +0400, Dmitry Vyukov wrote:
>> That would be an option too. I don't know whether it is much better or not.
>> Kernel lives without constructors, they are used only by coverage. And
>> coverage does not need priorities. So it is only kasan that needs
>> priorities. That would be a plenty of code in lib/module.c only for
>> kasan...
>
> If you change it, we can revert the gcc change.
>
>> Meanwhile here is backport to 4.9. Applied w/o conflicts (not counting
>> ChangeLog).
>>
>> OK to commit to gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch ?
>
> Ok.
>
> Jakub