GNU Info

Info Node: (nasm.info)Section 6.7

(nasm.info)Section 6.7


Next: Section 6.8 Prev: Section 6.6 Up: Chapter 6
Enter node , (file) or (file)node

6.7. `aoutb': NetBSD/FreeBSD/OpenBSD `a.out' Object Files
=========================================================

   The `aoutb' format generates `a.out' object files, in the form used
by the various free `BSD Unix' clones, `NetBSD', `FreeBSD' and
`OpenBSD'. For simple object files, this object format is exactly the
same as `aout' except for the magic number in the first four bytes of
the file. However, the `aoutb' format supports position-independent
code in the same way as the `elf' format, so you can use it to write
`BSD' shared libraries.

   `aoutb' provides a default output file-name extension of `.o'.

   `aoutb' supports no special directives, no special symbols, and only
the three standard section names `.text', `.data' and `.bss'. However,
it also supports the same use of `WRT' as `elf' does, to provide
position-independent code relocation types. See *Note Section 6.5.2::
for full documentation of this feature.

   `aoutb' also supports the same extensions to the `GLOBAL' directive
as `elf' does: see *Note Section 6.5.3:: for documentation of this.


automatically generated by info2www version 1.2.2.9