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

            Bug ID: 125205
           Summary: FAIL: gcc.target/i386/ssp-global-hidden-3.c (test for
                    excess errors)
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: ro at CeBiTec dot Uni-Bielefeld.DE
  Target Milestone: ---
            Target: x86

Solaris/x86 reports:

FAIL: gcc.target/i386/ssp-global-hidden-3.c (test for excess errors)
UNRESOLVED: gcc.target/i386/ssp-global-hidden-3.c compilation failed to produce
executable

Since ix86_stack_protect_fail returns default_external_stack_protect_fail for
64-bit and default_hidden_stack_protect_fail for 32-bit which references
__stack_chk_fail_local.  But __stack_chk_fail_local isn't provided on Solaris.
So Solaris/x86 gets:

ssp-global-hidden-3.C:(.text.startup+0x75): undefined reference to
`__stack_chk_fail_local'

The issue was exposed by the newly added g++.target/i386/ssp-global-hidden-3.C.
ix86_stack_protect_fail should be changed for Solaris.

Reply via email to