summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-18 02:58:35 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-18 02:58:35 -0700
commit2602c7d9f916b4dbebfe67dc71b7802f0d60d695 (patch)
treee1391540f2a3ea4fd948a09d15065e6e5873b8f9
parent516221dd8ef93fb476f12d2add22eadcc706dcc5 (diff)
downloadbinutils-gdb-users/hjl/output.tar.gz
Remove type_unknownusers/hjl/output
-rw-r--r--include/bfdlink.h3
-rw-r--r--ld/lexsup.c3
2 files changed, 1 insertions, 5 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index ace8e256715..797a4650e85 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 1d17c0da879..1fa05ded734 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. */