This is the mail archive of the gcc-bugs@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]

[Bug c/22262] New: stack_protector use creates broken assembler


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


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