diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2018-10-31 13:03:37 -0700 |
---|---|---|
committer | Dale Curtis <dalecurtis@chromium.org> | 2018-10-31 20:04:48 +0000 |
commit | 107604940bdc9787bc12fab8cdcc22ca6d53fdbb (patch) | |
tree | bc12ca6378ec76f299cfa6d86f7e95a8f67b0f5f | |
parent | 3c16ae0099239e01503493e9be6a2db0f5fbc582 (diff) | |
download | nasm-107604940bdc9787bc12fab8cdcc22ca6d53fdbb.tar.gz |
Apply deterministic build patch.
This removes __DATE__ from a few places to ensure the build is always
the same. Patch originally authored by davidben at chromium.org
This is one of the initial commits preparing NASM for use in Chrome.
BUG=766721
Change-Id: I4217f9ffed1455b8f244b024dc10dbb8c5c0664d
-rw-r--r-- | asm/nasm.c | 4 | ||||
-rw-r--r-- | disasm/ndisasm.c | 4 | ||||
-rw-r--r-- | include/ver.h | 1 | ||||
-rw-r--r-- | nasmlib/ver.c | 1 |
4 files changed, 4 insertions, 6 deletions
@@ -828,8 +828,8 @@ static const struct textargs textopts[] = { static void show_version(void) { - printf("NASM version %s compiled on %s%s\n", - nasm_version, nasm_date, nasm_compile_options); + printf("NASM version %s%s\n", + nasm_version, nasm_compile_options); exit(0); } diff --git a/disasm/ndisasm.c b/disasm/ndisasm.c index 2d0cf153..591c19bc 100644 --- a/disasm/ndisasm.c +++ b/disasm/ndisasm.c @@ -118,8 +118,8 @@ int main(int argc, char **argv) case 'r': case 'v': fprintf(stderr, - "NDISASM version %s compiled on %s\n", - nasm_version, nasm_date); + "NDISASM version %s\n", + nasm_version); return 0; case 'u': /* -u for -b 32, -uu for -b 64 */ if (bits < 64) diff --git a/include/ver.h b/include/ver.h index 62d9c52d..6c93fe15 100644 --- a/include/ver.h +++ b/include/ver.h @@ -39,7 +39,6 @@ #define NASM_VER_H extern const char nasm_version[]; -extern const char nasm_date[]; extern const char nasm_compile_options[]; extern const char nasm_comment[]; extern const char nasm_signature[]; diff --git a/nasmlib/ver.c b/nasmlib/ver.c index 98362e35..826ff159 100644 --- a/nasmlib/ver.c +++ b/nasmlib/ver.c @@ -36,7 +36,6 @@ /* This is printed when entering nasm -v */ const char nasm_version[] = NASM_VER; -const char nasm_date[] = __DATE__; const char nasm_compile_options[] = "" #ifdef DEBUG " with -DDEBUG" |