diff options
-rw-r--r-- | include/bfdlink.h | 3 | ||||
-rw-r--r-- | ld/lexsup.c | 3 |
2 files changed, 1 insertions, 5 deletions
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 @@ struct bfd_elf_version_tree; 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 @@ parse_args (unsigned argc, char **argv) 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. */ |