This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[Committed/AARCH64] Fix stack protector for ILP32


Hi,
  I was trying to compile an ilp32 enabled glibc and ran into a
failure with stack protector.  The problem is two fold.  First we were
generating the wrong mode for the result to testing against zero.  The
next issue is we were using 64bit loads instead of 32bit loads from
__stack_chk_guard.  This was caused by using x instead of <w> in the
assembly template.

I committed the patch for both of these issues after a build and test
on aarch64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
* config/aarch64/aarch64.md (stack_protect_set_<mode>):
Use <w> for the register in assembly template.
(stack_protect_test): Use the mode of operands[0] for the
result.
(stack_protect_test_<mode>): Use <w> for the register
in assembly template.

Attachment: fixilp32stackprotector.diff.txt
Description: Text document


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