[PATCH] Add support for dynamic shadow offset

2020-07-16 Thread Harshit Sharma via Gcc-patches
Hi all, This patch adds support for dynamic shadow offset in ASan stack instrumentation. It is required by Kernel Address Sanitizer in cases where the shadow offset address is not known at compile-time as the shadow buffer may not be allocated during the early boot stages. I used a callback funct

Emit a variable defined in gcc

2020-06-29 Thread Harshit Sharma via Gcc-patches
Hello, I am working on a gcc patch for asan. The patch is almost ready except one thing. To make sure that the user has applied this patch before using asan feature, I want to declare an additional variable in gcc which is referenced by our source code so that if this patch is missing, the user get

Emit a variable defined in gcc

2020-06-29 Thread Harshit Sharma via Gcc-patches
Hello, I am working on a gcc patch for asan. The patch is almost ready except one thing. To make sure that the user has applied this patch before using asan feature, I want to declare an additional variable in gcc which is referenced by our source code so that if this patch is missing, the user get