Copyright (C) 2000-2012 |
GNU Info (nasm.info)Section 6.9.36.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 |