summaryrefslogtreecommitdiff
path: root/ld/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/io.c')
-rw-r--r--ld/io.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/ld/io.c b/ld/io.c
index e56a474..9dd7b06 100644
--- a/ld/io.c
+++ b/ld/io.c
@@ -127,8 +127,10 @@ int level;
PUBLIC void executable()
{
+ if (errcount)
+ unlink(outputname);
#ifndef MSDOS
- if (errcount == 0)
+ else
chmod(outputname, outputperms);
#endif
}
@@ -620,6 +622,13 @@ PUBLIC void usage()
#endif
}
+PUBLIC void version_msg()
+{
+ stderr_out();
+ putstr("ld86 version: ");
+ errexit(VERSION);
+}
+
PUBLIC void use_error(message)
char *message;
{