diff options
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index d6ccae4..0722688 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -1168,7 +1168,7 @@ _bfd_coff_final_link (bfd *abfd, static char * dores_com (char *ptr, bfd *output_bfd, int heap) { - if (coff_data(output_bfd)->pe) + if (obj_pe (output_bfd)) { int val = strtoul (ptr, &ptr, 0); @@ -1400,7 +1400,7 @@ _bfd_coff_link_input_bfd (struct coff_final_link_info *flaginfo, bfd *input_bfd) output_index = syment_base; outsym = flaginfo->outsyms; - if (coff_data (output_bfd)->pe + if (obj_pe (output_bfd) && ! process_embedded_commands (output_bfd, flaginfo->info, input_bfd)) return false; @@ -3057,7 +3057,7 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, - input_section->vma + input_section->output_offset + input_section->output_section->vma); - if (coff_data (output_bfd)->pe) + if (obj_pe (output_bfd)) addr -= pe_data(output_bfd)->pe_opthdr.ImageBase; if (fwrite (&addr, 1, sizeof (bfd_vma), (FILE *) info->base_file) != sizeof (bfd_vma)) |