[PATCH 3/X] [libsanitizer] Add option to bootstrap using HWASAN

Matthew Malcomson Matthew.Malcomson@arm.com
Mon Nov 11 16:13:00 GMT 2019


On 11/11/2019 14:30, Martin Liška wrote:
> On 11/7/19 7:37 PM, Matthew Malcomson wrote:
>> +@item @samp{bootstrap-hwasan}
>> +Compiles GCC itself using HWAddress Sanitization in order to catch 
>> invalid
>> +memory accesses within the GCC code.  This option is only available 
>> on AArch64
>> +targets with a very recent linux kernel (5.4 or later).
>> +
> 
> Apparently, I see this hunk being applied:
> 
> diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
> index 2cb8a342a2c..ed47796e052 100644
> --- a/gcc/doc/install.texi
> +++ b/gcc/doc/install.texi
> @@ -2671,6 +2671,11 @@ the build tree.
> 
>   @end table
> 
> +@item @samp{bootstrap-hwasan}
> +Compiles GCC itself using HWAddress Sanitization in order to catch invalid
> +memory accesses within the GCC code.  This option is only available on 
> AArch64
> +targets with a very recent linux kernel (5.4 or later).
> +
>   @section Building a cross compiler
> 
>   When building a cross compiler, it is not generally possible to do a
> 
> and then I see:
> 
> make[2]: Entering directory '/dev/shm/objdir/gcc'
> if [ xinfo = xinfo ]; then \
>      makeinfo --split-size=5000000 --split-size=5000000 --no-split -I 
> /home/marxin/Programming/gcc/gcc/doc \
>          -I /home/marxin/Programming/gcc/gcc/doc/include -o 
> doc/gccinstall.info /home/marxin/Programming/gcc/gcc/doc/install.texi; \
> fi
> /home/marxin/Programming/gcc/gcc/doc/install.texi:2674: @item outside of 
> table or list
> make[2]: *** [Makefile:3279: doc/gccinstall.info] Error 1
> make[2]: Leaving directory '/dev/shm/objdir/gcc'
> 
> Can you please check it?
> Thanks,
> Martin

Ah!
My apologies -- I sent up a series with a few documentation mistakes.
(the others were wording problems so less noticeable)

I'm attaching the entire updated patch series (with the other 
documentation fixes in it too) and the fixed patch for just this part in 
case you just want to compile and test right now.

Regards,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all-patches.tar.gz
Type: application/gzip
Size: 58520 bytes
Desc: all-patches.tar.gz
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191111/7083a7ae/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-3.diff
Type: text/x-patch
Size: 4932 bytes
Desc: patch-3.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191111/7083a7ae/attachment.bin>


More information about the Gcc-patches mailing list