summaryrefslogtreecommitdiff
path: root/output/outelf64.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-31 16:53:49 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-31 16:53:49 -0700
commit4b9358928b114caaf34a69d6fdfd3b285b7a72cc (patch)
treeb531697231b1ac88943dd32c4fa434c746a40f66 /output/outelf64.c
parentdcd3a21145ef08583c1e242594777bf1625bf989 (diff)
downloadnasm-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.c4
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;