diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-04-06 18:32:15 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-04-06 18:32:15 +0400 |
commit | c1936da94269bf0a909310f2ec57aea818eabb70 (patch) | |
tree | 71e296b3188a39e565b1c5f5b8be42c67be6cf96 /nasm.h | |
parent | f2536e10a02bb8813cce5883862309d5b6b0162f (diff) | |
download | nasm-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.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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; |