GNU Binutils with patches for OS216
Revision | 2602c7d9f916b4dbebfe67dc71b7802f0d60d695 (tree) |
---|---|
Zeit | 2015-08-18 18:58:35 |
Autor | H.J. Lu <hjl.tools@gmai...> |
Commiter | H.J. Lu |
Remove type_unknown
@@ -263,8 +263,7 @@ struct bfd_elf_version_tree; | ||
263 | 263 | |
264 | 264 | enum output_type |
265 | 265 | { |
266 | - type_unknown = 0, | |
267 | - type_executable, | |
266 | + type_executable = 0, | |
268 | 267 | type_dll, |
269 | 268 | type_relocatable |
270 | 269 | }; |
@@ -1595,9 +1595,6 @@ parse_args (unsigned argc, char **argv) | ||
1595 | 1595 | einfo (_("%P%F: -f may not be used without -shared\n")); |
1596 | 1596 | } |
1597 | 1597 | |
1598 | - if (link_info.type == type_unknown) | |
1599 | - link_info.type = type_executable; | |
1600 | - | |
1601 | 1598 | /* Treat ld -r -s as ld -r -S -x (i.e., strip all local symbols). I |
1602 | 1599 | don't see how else this can be handled, since in this case we |
1603 | 1600 | must preserve all externally visible symbols. */ |