- fatal ("Can't detect target endianess and architecture.");
- target_is_bigendian = ((target_vec->byteorder == BFD_ENDIAN_BIG) ? 1 : 0);
-
- {
- const char * tname = target_vec->name;
- const char ** arches = bfd_arch_list();
-
- if (arches && tname)
- {
- char *hyp = strchr (tname, '-');
-
- if (hyp != NULL)
- {
- tname = ++hyp;
-
- /* Make sure we dectect architecture names
- for triplets like "pe-arm-wince-little". */
- if (!find_arch_match (tname, arches))
- {
- char *new_tname = (char *) alloca (strlen (hyp) + 1);
- strcpy (new_tname, hyp);
- while ((hyp = strrchr (new_tname, '-')) != NULL)
- {
- *hyp = 0;
- if (find_arch_match (new_tname, arches))
- break;
- }
- }
- }
- else
- find_arch_match (tname, arches);
- }
-
- free (arches);
-
- if (! def_target_arch)
- fatal ("Can't detect architecture.");
- }
+ fatal ("Can't detect target endianness and architecture.");
+ if (! def_target_arch)
+ fatal ("Can't detect architecture.");