Skip to content

Commit 38fd561

Browse files
komhH. Peter Anvin
authored andcommitted
outfmt.src: Add explanation for obj2 output format
Signed-off-by: KO Myung-Hun <komh78@gmail.com>
1 parent c7f426f commit 38fd561

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

doc/outfmt.src

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,41 @@ information. To suppress the generation of dependencies, use
511511
\c %pragma obj nodepend
512512

513513

514+
\H{obj2fmt} \i\c{obj2}: \i{OS/2 32-bit OMF}\I{OMF} Object Files
515+
516+
The \c{obj2} output format is the same as \c{obj} except:
517+
518+
\b Default attributes for a segment are \c{ALIGN=16} and \c{USE32}.
519+
520+
\b All 32-bit segment is added to \c{FLAT} group implicitly.
521+
522+
\b Support Unix sections such as \c{.text}, \c{.rodata}, \c{.data}
523+
and \c{.bss} for compatibility with other Unix platforms. And they are
524+
aliased to \c{TEXT32}, \c{CONST32}, \c{DATA32}, \c{BSS32}, respectively.
525+
526+
\b Set default classes implicitly for known segments such as TEXT32,
527+
CONST32, DATA32, BSS32 and so on.
528+
529+
The defaults assumed by NASM if you do not specify the qualifiers are:
530+
531+
\c SECTION .text ALIGN=16 USE32 CLASS=CODE FLAT
532+
\c SECTION .rodata ALIGN=16 USE32 CLASS=CONST FLAT
533+
\c SECTION .data ALIGN=16 USE32 CLASS=DATA FLAT
534+
\c SECTION .bss ALIGN=16 USE32 CLASS=BSS FLAT
535+
\c SECTION CODE ALIGN=16 USE32 CLASS=CODE FLAT
536+
\c SECTION TEXT ALIGN=16 USE32 CLASS=CODE FLAT
537+
\c SECTION CONST ALIGN=16 USE32 CLASS=CONST FLAT
538+
\c SECTION DATA ALIGN=16 USE32 CLASS=DATA FLAT
539+
\c SECTION BSS ALIGN=16 USE32 CLASS=BSS FLAT
540+
\c SECTION STACK ALIGN=16 USE32 CLASS=STACK FLAT
541+
\c SECTION CODE32 ALIGN=16 USE32 CLASS=CODE FLAT
542+
\c SECTION TEXT32 ALIGN=16 USE32 CLASS=CODE FLAT
543+
\c SECTION CONST32 ALIGN=16 USE32 CLASS=CONST FLAT
544+
\c SECTION DATA32 ALIGN=16 USE32 CLASS=DATA FLAT
545+
\c SECTION BSS32 ALIGN=16 USE32 CLASS=BSS FLAT
546+
\c SECTION STACK32 ALIGN=16 USE32 CLASS=STACK FLAT
547+
548+
514549
\H{win32fmt} \i\c{win32}: Microsoft Win32 Object Files
515550

516551
The \c{win32} output format generates Microsoft Win32 object files,

0 commit comments

Comments
 (0)