renamed hp9000.h to hp300.h
[deliverable/binutils-gdb.git] / ld / ldfile.c
index 2a0380c085a27c6a821eb0b066a6712c7aa89edb..f1c0bdb06957f49521785c291397dc005f1efa1e 100644 (file)
@@ -37,7 +37,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* EXPORT */
 char *ldfile_input_filename;
-CONST char * ldfile_output_machine_name;
+CONST char * ldfile_output_machine_name ="";
 unsigned long ldfile_output_machine;
 enum bfd_architecture ldfile_output_architecture;
 boolean had_script;
@@ -333,3 +333,20 @@ DEFUN(ldfile_add_arch,(in_name),
 
 }
 #endif
+
+/* Set the output architecture */
+void
+DEFUN(ldfile_set_output_arch,(string),
+CONST char *string)
+{
+  enum bfd_architecture arch;
+  unsigned long machine;
+  if (bfd_scan_arch_mach(string, &arch, &machine) == true) {
+    ldfile_output_architecture = arch;
+    ldfile_output_machine = machine;
+    ldfile_output_machine_name = string;
+  }
+  else {
+    info("%P%F: Can't represent machine `%s'\n", string);
+  }
+}
This page took 0.02483 seconds and 4 git commands to generate.