summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-04-06 18:32:15 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-04-06 18:32:15 +0400
commitc1936da94269bf0a909310f2ec57aea818eabb70 (patch)
tree71e296b3188a39e565b1c5f5b8be42c67be6cf96 /nasm.h
parentf2536e10a02bb8813cce5883862309d5b6b0162f (diff)
downloadnasm-c1936da94269bf0a909310f2ec57aea818eabb70.tar.gz
nasm-c1936da94269bf0a909310f2ec57aea818eabb70.tar.bz2
nasm-c1936da94269bf0a909310f2ec57aea818eabb70.zip
ofmt: Alias shortname must be used for __OUTPUT_FORMAT__ macro
__OUTPUT_FORMAT__ must consist of shortname of output format or its alias, otherwise userspace ABI gets broken. For example source code still can refer to __OUTPUT_FORMAT__=elf, instead of __OUTPUT_FORMAT__=elf32. BR3246990 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index f78ed0f..ff77553 100644
--- a/nasm.h
+++ b/nasm.h
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- *
*
- * Copyright 1996-2009 The NASM Authors - All Rights Reserved
+ * Copyright 1996-2011 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
@@ -754,6 +754,15 @@ struct ofmt {
void (*cleanup) (int debuginfo);
};
+/*
+ * Output format driver alias
+ */
+struct ofmt_alias {
+ const char *shortname;
+ const char *fullname;
+ struct ofmt *ofmt;
+};
+
extern struct ofmt *ofmt;
extern FILE *ofile;