Remove the leading underscore ( _ ) from symbol names. The Solaris 2.x SPARCompilers do not prepend a leading underscore to symbol names in the users' programs as did the SPARCompilers that ran under SunOS 4.1.
Prefix local symbol names with a dot (.). Local symbol names in the SunOS 5.x SPARC assembly language begin with a dot (.) so that they will not conflict with user programs' symbol names.
Change the usage of the pseudo-op .seg to .section, for example, change .seg data to .section .data. See Appendix A, Pseudo-Operations for more information.
The above conversions can be automatically achieved by passing the -T option to the assembler.