1YASM_OBJFMTS(7) Yasm Supported Object Formats YASM_OBJFMTS(7)
2
3
4
6 yasm_objfmts - Yasm Supported Object Formats
7
9 yasm -f objfmt ...
10
12 The standard Yasm distribution includes a number of modules for
13 different object formats (Yasm's primary output).
14
15 The object format is selected on the yasm(1) command line by use of the
16 -f objfmt command line option.
17
19 The “bin” object format produces a flat-format, non-relocatable binary
20 file. It is appropriate for producing DOS .COM executables or things
21 like boot blocks. It supports only 3 sections and those sections are
22 written in a predefined order to the output file.
23
25 The COFF object format is an older relocatable object format used on
26 older Unix and compatible systems, and also (more recently) on the
27 DJGPP development system for DOS.
28
30 The “dbg” object format is not a “real” object format; the output file
31 it creates simply describes the sequence of calls made to it by Yasm
32 and the final object and symbol table information in a human-readable
33 text format (that in a normal object format would get processed into
34 that object format's particular binary representation). This object
35 format is not intended for real use, but rather for debugging Yasm's
36 internals.
37
39 The ELF object format really comes in two flavors: “elf32” (for 32-bit
40 targets) and “elf64” (for 64-bit targets). ELF is a standard object
41 format in common use on modern Unix and compatible systems (e.g. Linux,
42 FreeBSD). ELF has complex support for relocatable and shared objects.
43
45 The Mach-O object format really comes in two flavors: “macho32” (for
46 32-bit targets) and “macho64” (for 64-bit targets). Mach-O is used as
47 the object format on MacOS X. As Yasm currently only supports x86 and
48 AMD64 instruction sets, it can only generate Mach-O objects for
49 Intel-based Macs.
50
52 The RDOFF2 object format is a simple multi-section format originally
53 designed for NASM. It supports segment references but not WRT
54 references. It was designed primarily for simplicity and has
55 minimalistic headers for ease of loading and linking. A complete
56 toolchain (linker, librarian, and loader) is distributed with NASM.
57
59 The Win32 object format produces object files compatible with Microsoft
60 compilers (such as Visual C++) that target the 32-bit x86 Windows
61 platform. The object format itself is an extended version of COFF.
62
64 The Win64 object format produces object files compatible with Microsoft
65 compilers that target the 64-bit “x64” Windows platform. This format is
66 very similar to the win32 object format, but produces 64-bit objects.
67
69 The XDF object format is essentially a simplified version of COFF. It's
70 a multi-section relocatable format that supports 64-bit physical and
71 virtual addresses.
72
74 yasm(1), yasm_arch(7)
75
77 Peter Johnson <peter@tortall.net>
78 Author.
79
81 Copyright © 2006 Peter Johnson
82
83
84
85Yasm February 2007 YASM_OBJFMTS(7)