diff options
author | Alan Modra <amodra@gmail.com> | 2023-01-06 19:34:15 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-01-06 21:06:15 +1030 |
commit | 10df41b188b2692b6bc8c36d4003e0f8790d1f1b (patch) | |
tree | 8e35758d1b7208320c9808601492948b381be905 /bfd/coffgen.c | |
parent | 22a95e1a37aff28238e9d40bbe4441aa554a14c6 (diff) | |
download | gdb-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/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 74636a9..f21cf2c 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -1826,8 +1826,7 @@ coff_get_normalized_symtab (bfd *abfd) /* Ordinary short filename, put into memory anyway. The Microsoft PE tools sometimes store a filename in multiple AUX entries. */ - if (internal_ptr->u.syment.n_numaux > 1 - && coff_data (abfd)->pe) + if (internal_ptr->u.syment.n_numaux > 1 && obj_pe (abfd)) internal_ptr->u.syment._n._n_n._n_offset = ((uintptr_t) copy_name (abfd, @@ -1842,7 +1841,7 @@ coff_get_normalized_symtab (bfd *abfd) } /* Normalize other strings available in C_FILE aux entries. */ - if (!coff_data (abfd)->pe) + if (!obj_pe (abfd)) for (int numaux = 1; numaux < internal_ptr->u.syment.n_numaux; numaux++) { aux = internal_ptr + numaux + 1; |