This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] ARM: stricter __stack_chk_guard check during prologue


Joel Brobecker <brobecker@adacore.com> writes:

Joel,
I run regression tests on arm-linux-gnueabi with your patch.  There are
some fails on armv4t arm and thumb mode.  It is an existing bug
introduced by my patch :( and your patch just exposed it.  I'll fix it separately.

>    /* If name of symbol doesn't start with '__stack_chk_guard', this
>       instruction sequence is not for stack protector.  If symbol is
>       removed, we conservatively think this sequence is for stack protector.  */

We need to update the comment to sync with the code below.

> -  if (stack_chk_guard.minsym
> -      && strncmp (MSYMBOL_LINKAGE_NAME (stack_chk_guard.minsym),
> +  if (stack_chk_guard.minsym == NULL
> +      || strncmp (MSYMBOL_LINKAGE_NAME (stack_chk_guard.minsym),
>  		  "__stack_chk_guard",
>  		  strlen ("__stack_chk_guard")) != 0)

Otherwise, it looks good to me.

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]