aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-23 15:59:24 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-23 15:59:24 +0000
commita37cc0c05c5ee0e72a14a09c547555621371ef1d (patch)
tree2df4ce4a562ee651f2f17351d0a0402c75152583 /ld/ldfile.c
parent1327fb29568debb17b167a405a548f641bcfda69 (diff)
downloadgdb-a37cc0c05c5ee0e72a14a09c547555621371ef1d.zip
gdb-a37cc0c05c5ee0e72a14a09c547555621371ef1d.tar.gz
gdb-a37cc0c05c5ee0e72a14a09c547555621371ef1d.tar.bz2
*** empty log message ***
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index a52cfb0..f1c0bdb 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -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);
+ }
+}