0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00
Files
nasm/output/outobj.mac
KO Myung-Hun c7f426f5e5 outobj: add obj2 driver
Obj2 is an obj variation for OS/2.

Obj2 has the following differences from obj.

1. Default attributes for a segment are ALIGN=16 and USE32.
2. Add a segment to FLAT group implicitly if 32-bit segment.
3. Recognize Unix sections .text, .rodata, .data and .bss as TEXT32,
   CONST32, DATA32 and BSS32 respectively for compatibility with other
   Unix platforms.
4. Set default classes implicitly for known segments such as TEXT32,
   CONST32, DATA32, BSS32 and so on.

Signed-off-by: KO Myung-Hun <komh78@gmail.com>
2025-10-04 15:57:24 -07:00

20 lines
381 B
Plaintext

;; SPDX-License-Identifier: BSD-2-Clause
;; Copyright 1996-2009 The NASM Authors - All Rights Reserved
OUT: obj obj2
%define __?SECT?__ [section .text]
%imacro group 1+.nolist
[group %1]
%endmacro
%imacro uppercase 0+.nolist
[uppercase %1]
%endmacro
%imacro export 1+.nolist
[export %1]
%endmacro
%imacro import 1+.nolist
[import %1]
%endmacro
%macro __?NASM_CDecl?__ 1
%endmacro