diff options
author | Stanislav Karchebny <berkus@users.sourceforge.net> | 2003-09-24 10:30:56 +0000 |
---|---|---|
committer | Stanislav Karchebny <berkus@users.sourceforge.net> | 2003-09-24 10:30:56 +0000 |
commit | 88a049aca1f4e1ce8a072d0f1757a4de1dfb0608 (patch) | |
tree | bb279271e061c752adb09d2f0580971c89533221 /output | |
parent | f3b3ce27bddf23aad6759c3d243c89cb6633e27c (diff) | |
download | nasm-88a049aca1f4e1ce8a072d0f1757a4de1dfb0608.tar.gz nasm-88a049aca1f4e1ce8a072d0f1757a4de1dfb0608.tar.bz2 nasm-88a049aca1f4e1ce8a072d0f1757a4de1dfb0608.zip |
Added _NASM_FORMAT_ macro
Diffstat (limited to 'output')
-rw-r--r-- | output/outaout.c | 1 | ||||
-rw-r--r-- | output/outas86.c | 1 | ||||
-rw-r--r-- | output/outbin.c | 1 | ||||
-rw-r--r-- | output/outcoff.c | 1 | ||||
-rw-r--r-- | output/outelf.c | 1 | ||||
-rw-r--r-- | output/outobj.c | 1 | ||||
-rw-r--r-- | output/outrdf.c | 1 | ||||
-rw-r--r-- | output/outrdf2.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/output/outaout.c b/output/outaout.c index 24e2b58..495e9ac 100644 --- a/output/outaout.c +++ b/output/outaout.c @@ -877,6 +877,7 @@ static void aout_filename (char *inname, char *outname, efunc error) static const char *aout_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'aout'", "%macro __NASM_CDecl__ 1", "%endmacro", NULL diff --git a/output/outas86.c b/output/outas86.c index 3026ad9..b623a15 100644 --- a/output/outas86.c +++ b/output/outas86.c @@ -555,6 +555,7 @@ static void as86_filename (char *inname, char *outname, efunc error) static const char *as86_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'as86'", "%macro __NASM_CDecl__ 1", "%endmacro", NULL diff --git a/output/outbin.c b/output/outbin.c index 80be83c..72821ff 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -137,6 +137,7 @@ static char *infile, *outfile; static const char *bin_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'bin'", "%imacro org 1+.nolist", "[org %1]", "%endmacro", diff --git a/output/outcoff.c b/output/outcoff.c index 856da58..655e3fc 100644 --- a/output/outcoff.c +++ b/output/outcoff.c @@ -820,6 +820,7 @@ static void coff_win32_filename (char *inname, char *outname, efunc error) static const char *coff_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'coff'", "%macro __NASM_CDecl__ 1", "%endmacro", "%imacro export 1+.nolist", diff --git a/output/outelf.c b/output/outelf.c index 16c25d1..276feac 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -1225,6 +1225,7 @@ static void elf_filename (char *inname, char *outname, efunc error) static const char *elf_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'elf'", "%macro __NASM_CDecl__ 1", "%define $_%1 $%1", "%endmacro", diff --git a/output/outobj.c b/output/outobj.c index 14b6cd9..188ff73 100644 --- a/output/outobj.c +++ b/output/outobj.c @@ -2285,6 +2285,7 @@ void obj_fwrite(ObjRecord *orp) static const char *obj_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'obj'", "%imacro group 1+.nolist", "[group %1]", "%endmacro", diff --git a/output/outrdf.c b/output/outrdf.c index d9989e5..6ae492e 100644 --- a/output/outrdf.c +++ b/output/outrdf.c @@ -501,6 +501,7 @@ static void rdf_filename (char *inname, char *outname, efunc error) { static char *rdf_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'oldrdf'", /* Its always oldrdf for consistency with rdf version 2 */ "%imacro library 1+.nolist", "[library %1]", "%endmacro", diff --git a/output/outrdf2.c b/output/outrdf2.c index 1dfef93..8fdf6a4 100644 --- a/output/outrdf2.c +++ b/output/outrdf2.c @@ -753,6 +753,7 @@ static void rdf2_filename (char *inname, char *outname, efunc error) { static const char *rdf2_stdmac[] = { "%define __SECT__ [section .text]", + "%define _NASM_FORMAT_ 'rdf'", "%imacro library 1+.nolist", "[library %1]", "%endmacro", |