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++/66400] New: g++.dg/stackprotectexplicit2.C FAILs with PIE


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66400

            Bug ID: 66400
           Summary: g++.dg/stackprotectexplicit2.C FAILs with PIE
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: hjl at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
            Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
             Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12

With --enable-default-pie, g++.dg/stackprotectexplicit2.C FAILs on both
Linux/x86_64
and Solaris 12/x86 with -m32:

+FAIL: g++.dg/stackprotectexplicit2.C  -std=gnu++11  scan-assembler-times
stack_chk_fail 2
+FAIL: g++.dg/stackprotectexplicit2.C  -std=gnu++14  scan-assembler-times
stack_chk_fail 2
+FAIL: g++.dg/stackprotectexplicit2.C  -std=gnu++98  scan-assembler-times
stack_chk_fail 2

On Linux/x86_64, stackprotectexplicit2.s contains

        call    __stack_chk_fail_local
        call    __stack_chk_fail_local
        .hidden __stack_chk_fail_local

  Rainer


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