diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-31 16:53:49 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-31 16:53:49 -0700 |
commit | 4b9358928b114caaf34a69d6fdfd3b285b7a72cc (patch) | |
tree | b531697231b1ac88943dd32c4fa434c746a40f66 /output/outelf64.c | |
parent | dcd3a21145ef08583c1e242594777bf1625bf989 (diff) | |
download | nasm-4b9358928b114caaf34a69d6fdfd3b285b7a72cc.tar.gz |
Move all version strings to a single compilation unit (ver.c)
Move all the version strings to a single compilation unit, ver.c; this
does not include the version macros, which are fed into macros.c.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output/outelf64.c')
-rw-r--r-- | output/outelf64.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/output/outelf64.c b/output/outelf64.c index b7caa164..4e2988af 100644 --- a/output/outelf64.c +++ b/output/outelf64.c @@ -1232,8 +1232,7 @@ static void elf_write(void) * Do the comment. */ *comment = '\0'; - commlen = - 2 + sprintf(comment + 1, "The Netwide Assembler %s", NASM_VER); + commlen = 2 + snprintf(comment+1, sizeof comment-1, "%s", nasm_comment); /* * Output the ELF header. @@ -2063,7 +2062,6 @@ void dwarf64_output(int type, void *param) void dwarf64_generate(void) { - static const char nasm_signature[] = "NASM " NASM_VER; uint8_t *pbuf; int indx; struct linelist *ftentry; |