Chapter 8. Assembler Directives
67
8.94.1. COFF Version
For COFF targets, this directive is permitted only within
.def
/
.endef
pairs. It is used like this:
.type int
This records the integer
int
as the type attribute of a symbol table entry.
.type
is associated only with COFF format output; when
as
is configured for
b.out
output, it
accepts this directive but ignores it.
8.94.2. ELF Version
For ELF targets, the
.type
directive is used like this:
.type name , type description
This sets the type of symbol
name
to be either a function symbol or an object symbol. There are five
different syntaxes supported for the
type description
field, in order to provide compatibility with
various other assemblers. The syntaxes supported are:
.type
name ,#function
.type
name ,#object
.type
name ,@function
.type
name ,@object
.type
name ,%function
.type
name ,%object
.type
name ,"function"
.type
name ,"object"
.type
name
STT_FUNCTION
.type
name
STT_OBJECT
8.95.
.uleb128 expressions
uleb128
stands for "unsigned little endian base 128." This is a compact, variable length representa 
tion of numbers used by the DWARF symbolic debugging format.
.sleb128
.
8.96.
.val addr
This directive, permitted only within
.def
/
.endef
pairs, records the address
addr
as the value at 
tribute of a symbol table entry.
.val
is used only for COFF output; when
as
is configured for
b.out
, it accepts this directive but
ignores it.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

canadian web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved