aboutsummaryrefslogtreecommitdiff
path: root/ld/ldelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldelf.c')
-rw-r--r--ld/ldelf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/ldelf.c b/ld/ldelf.c
index 0499925..a733131 100644
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
@@ -2206,3 +2206,11 @@ ldelf_before_place_orphans (void)
}
}
}
+
+void
+ldelf_set_output_arch (void)
+{
+ set_output_arch_default ();
+ if (link_info.output_bfd->xvec->flavour == bfd_target_elf_flavour)
+ elf_link_info (link_info.output_bfd) = &link_info;
+}