GNU Info

Info Node: (nasm.info)Section 6.9.2

(nasm.info)Section 6.9.2


Next: Section 6.9.3 Prev: Section 6.9.1 Up: Section 6.9
Enter node , (file) or (file)node

6.9.2. Specifying a Module Name: The `MODULE' Directive
-------------------------------------------------------

   Special `RDOFF' header record is used to store the name of the
module.  It can be used, for example, by run-time loader to perform
dynamic linking.  `MODULE' directive takes one argument which is the
name of current module:

         module  mymodname

   Note that when you statically link modules and tell linker to strip
the symbols from output file, all module names will be stripped too. To
avoid it, you should start module names with `$', like:

         module  $kernel.core


automatically generated by info2www version 1.2.2.9