Remove type_unknown
diff --git a/include/bfdlink.h b/include/bfdlink.h
index ace8e25..797a465 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -263,8 +263,7 @@
 
 enum output_type
 {
-  type_unknown = 0,
-  type_executable,
+  type_executable = 0,
   type_dll,
   type_relocatable
 };
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 1d17c0d..1fa05de 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1595,9 +1595,6 @@
 	einfo (_("%P%F: -f may not be used without -shared\n"));
     }
 
-  if (link_info.type == type_unknown)
-    link_info.type = type_executable;
-
   /* Treat ld -r -s as ld -r -S -x (i.e., strip all local symbols).  I
      don't see how else this can be handled, since in this case we
      must preserve all externally visible symbols.  */