GNU Info

Info Node: (nasm.info)Section 6.9.3

(nasm.info)Section 6.9.3


Next: Section 6.10 Prev: Section 6.9.2 Up: Section 6.9
Enter node , (file) or (file)node

6.9.3. `rdf' Extensions to the `GLOBAL' directive
-------------------------------------------------

   `RDOFF' global symbols can contain additional information needed by
the static linker. You can mark a global symbol as exported, thus
telling the linker do not strip it from target executable or library
file. Like in `ELF', you can also specify whether an exported symbol is
a procedure (function) or data object.

   Suffixing the name with a colon and the word `export' you make the
symbol exported:

         global  sys_open:export

   To specify that exported symbol is a procedure (function), you add
the word `proc' or `function' after declaration:

         global  sys_open:export proc

   Similarly, to specify exported data object, add the word `data' or
`object' to the directive:

         global  kernel_ticks:export data


automatically generated by info2www version 1.2.2.9