aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-mcore.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-01-06 19:34:15 +1030
committerAlan Modra <amodra@gmail.com>2023-01-06 21:06:15 +1030
commit10df41b188b2692b6bc8c36d4003e0f8790d1f1b (patch)
tree8e35758d1b7208320c9808601492948b381be905 /bfd/coff-mcore.c
parent22a95e1a37aff28238e9d40bbe4441aa554a14c6 (diff)
downloadgdb-10df41b188b2692b6bc8c36d4003e0f8790d1f1b.zip
gdb-10df41b188b2692b6bc8c36d4003e0f8790d1f1b.tar.gz
gdb-10df41b188b2692b6bc8c36d4003e0f8790d1f1b.tar.bz2
Tidy pe flag in coff_data
Make it a bool, use obj_pe accessor everywhere.
Diffstat (limited to 'bfd/coff-mcore.c')
-rw-r--r--bfd/coff-mcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-mcore.c b/bfd/coff-mcore.c
index 561333d..e360d5e 100644
--- a/bfd/coff-mcore.c
+++ b/bfd/coff-mcore.c
@@ -220,7 +220,7 @@ mcore_emit_base_file_entry (struct bfd_link_info *info,
+ 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, sizeof (addr), 1, (FILE *) info->base_file) == 1)