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

            Bug ID: 85429
           Summary: Several gotools tests FAIL with Solaris as
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: ro at gcc dot gnu.org
                CC: cmang at google dot com
  Target Milestone: ---
            Target: *-*-solaris2.*

I noticed that several gotools tests FAIL when using Solaris as.  E.g. on x86:

=== RUN   TestGccgoCrashTracebackNodebug
--- FAIL: TestGccgoCrashTracebackNodebug (6.01s)
        crash_test.go:55: building testprogcxx []: exit status 2
                #
_/vol/gcc/src/hg/trunk/local/libgo/go/runtime/testdata/testprogcxx
                Assembler:
                        "/var/tmp//ccPwSFPa.s", line 1 : Invalid section
attribute

  "e" for SHF_EXCLUDE is only supported by gas, it seems.  I don't know an
/bin/as
  alternative

                        "/var/tmp//ccPwSFPa.s", line 8 : Syntax error
                        Near line: " .section .note.GNU-stack,"",@progbits"
                        "/var/tmp//ccPwSFPa.s", line 9 : Syntax error
                        Near line: " .section
.note.GNU-split-stack,"",@progbits"

  as cannot handle - in section names, it seems, and provides no quoting

* On sparc, the situation is worse because the .section syntax differs:

# cmd/go/internal/str
/usr/ccs/bin/as: "/var/tmp//ccZPzx3b.s", line 6: error: quoted-string operand
required
/usr/ccs/bin/as: "/var/tmp//ccZPzx3b.s", line 13: error: invalid character
(0x40)
/usr/ccs/bin/as: "/var/tmp//ccZPzx3b.s", line 13: error: quoted-string operand
required
/usr/ccs/bin/as: "/var/tmp//ccZPzx3b.s", line 13: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccZPzx3b.s", line 14: error: invalid character
(0x40)
/usr/ccs/bin/as: "/var/tmp//ccZPzx3b.s", line 14: error: quoted-string operand
required
/usr/ccs/bin/as: "/var/tmp//ccZPzx3b.s", line 14: error: statement syntax

I'm not sure about the buildid part, but there's probably no point in emitting
.note.GNU-stack and .note.GNU-split-stack on Solaris since nothing looks at
them anyway.

  Rainer

Reply via email to