[Bug testsuite/34534] New: gdb.base/break-on-linker-gcd-function.exp FAILs with Solaris ld

"ro at gcc dot gnu.org via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34534

            Bug ID: 34534
           Summary: gdb.base/break-on-linker-gcd-function.exp FAILs with
                    Solaris ld
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

The gdb.base/break-on-linker-gcd-function.exp testcase FAILs on Solaris when
gcc uses Solaris ld (which is the recommended configuration):

FAIL: gdb.base/break-on-linker-gcd-function.exp: break on line in garbage
collected function
FAIL: gdb.base/break-on-linker-gcd-function.exp: readnow: break on line in
garbage collected function

While Solaris ld supports --gc-sections as a compatibilty alias for the native
-z discard-unused=sections), it doesn't remove the .text.._Z3foov section
from the executable.  I'm discussing this with the Solaris linker maintainer
right now, but this test is one of the subset run by the gdb buildbots, so
this should be handled there, too.

I see two options:

* Just skip (or xfail) the test on Solaris, although when using a gcc
configured
  to use gld the test should work.

* Only do this when gcc actually uses Solaris ld.  While more correct, this 
  may simply be overkill.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.