Go to main content

SPARC Assembly Language Reference Manual

Exit Print View

Updated: October 2017
 
 

3.4 Pseudo-Op Attributes

Pseudo-ops .global, .section, .register, and .type accept specific attributes that correspond to linker attribute flags, as shown in the following table.

Example: .type sum, #function.

Table 13  Pseudo-op Linker Attributes
Attribute
Linker Symbol
Accepting Pseudo-op
#alloc
SHF_ALLOC
.section
#annotate
SHT_SUNW_ANNOTATE
.section
#comdat
SHT_SUNW_COMDAT
.group
#eliminate
STV_ELIMINATE
.type
#exclude
SHF_EXCLUDE
.section
#execinstr
SHF_EXECINSTR
.section
#exported
STV_EXPORTED
.type
#fini_array
SHT_FINI_ARRAY
.section
#function
STT_FUNC
.type
#group
SHF_GROUP
.section
#hidden
STV_HIDDEN
.type
#init_array
SHT_INIT_ARRAY
.section
#internal
STV_INTERNAL
.type
#linkafter
SHN_AFTER
.section
#linkbefore
SHN_BEFORE
.section
#linkorder
SHF_LINK_ORDER
.section
#nobits
SHT_NOBITS
.section
#no_type
STT_NOTYPE
.type
#object
STT_OBJECT
.type
#ordered
SHF_ORDERED
.section
#preinit_array
SHT_PREINIT_ARRAY
.section
#progbits
SHT_PROGBITS
.section
#protected
STV_PROTECTED
.type
#scratch
no linker flag
.register
#singleton
STV_SINGLETON
.type
#symbolic
STV_PROTECTED
.type
#tls
SHF_TLS
.section
#tls_object
STT_TLS
.type
#visible
STV_DEFAULT
.type
#write
SHF_WRITE
.section

See the Oracle Solaris 11.3 Linkers and Libraries Guide for details.