Bug 66400 - g++.dg/stackprotectexplicit2.C FAILs with PIE
Summary: g++.dg/stackprotectexplicit2.C FAILs with PIE
Status: RESOLVED DUPLICATE of bug 70150
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: 6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-03 13:25 UTC by Rainer Orth
Modified: 2016-03-17 13:50 UTC (History)
1 user (show)

See Also:
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
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2015-06-03 13:25:23 UTC
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
Comment 1 H.J. Lu 2016-03-17 13:50:59 UTC
Dup.

*** This bug has been marked as a duplicate of bug 70150 ***