+Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
+
+ * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
+ * ldexp.c: lint
+ * ldlang.c(open_output): set the target arch and machine as soon
+ as we can. (lang_size_sections): use new macros for setting vma
+ * ldwrite.c: lint
+
Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
* configure.in (my_target): Accept m680?0 for wrs as vxworks68.
DEFUN (open_output, (name),
CONST char *CONST name)
{
+ extern unsigned long ldfile_output_machine;
+ extern enum bfd_architecture ldfile_output_architecture;
+
extern CONST char *output_filename;
bfd *output;
if (output_target == (char *) NULL)
- {
- if (current_target != (char *) NULL)
- output_target = current_target;
- else
- output_target = default_target;
- }
+ {
+ if (current_target != (char *) NULL)
+ output_target = current_target;
+ else
+ output_target = default_target;
+ }
output = bfd_openw (name, output_target);
output_filename = name;
if (output == (bfd *) NULL)
+ {
+ if (bfd_error == invalid_target)
{
- if (bfd_error == invalid_target)
- {
- einfo ("%P%F target %s not found\n", output_target);
- }
- einfo ("%P%F problem opening output file %s, %E", name);
+ einfo ("%P%F target %s not found\n", output_target);
}
+ einfo ("%P%F problem opening output file %s, %E", name);
+ }
+
+ /* output->flags |= D_PAGED;*/
-/* output->flags |= D_PAGED;*/
bfd_set_format (output, bfd_object);
+ bfd_set_arch_mach(output,
+ ldfile_output_architecture,
+ ldfile_output_machine);
return output;
}
if (os->bfd_section == &bfd_abs_section)
{
/* No matter what happens, an abs section starts at zero */
- os->bfd_section->vma = 0;
+ bfd_set_section_vma (0, os->bfd_section, 0);
}
else
{
dot = align_power (dot, os->bfd_section->alignment_power);
- os->bfd_section->vma = dot;
+ bfd_set_section_vma (0, os->bfd_section, dot);
}