This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22262] New: stack_protector use creates broken assembler
- From: "marcus at jet dot franken dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2005 22:30:51 -0000
- Subject: [Bug c/22262] New: stack_protector use creates broken assembler
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
the attached testcase compiled with -fPIC -O2 creates currrently a construct
likes this:
movl __stack_chk_guard@GOT(%ebx), %eax
movl -16(%ebp), %eax
xorl (%eax), %eax
So, it clobbers the register it just loaded.
I tried to reduce a testcase, attached. Also .s output from my compile run is
attached.
--
Summary: stack_protector use creates broken assembler
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22262