diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-04-21 12:05:56 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-04-21 12:05:56 +0200 |
commit | ae272fb8a57bb03dcc8ff800bb1b861bdc79933f (patch) | |
tree | 2b4aabbf3e1d1007e98de9183145ef95ae7f2581 | |
parent | 0699f2d795cdb4bc4db2bcf438291ec09d21f0da (diff) | |
download | gdb-ae272fb8a57bb03dcc8ff800bb1b861bdc79933f.zip gdb-ae272fb8a57bb03dcc8ff800bb1b861bdc79933f.tar.gz gdb-ae272fb8a57bb03dcc8ff800bb1b861bdc79933f.tar.bz2 |
bfd: fix STRICT_PE_FORMAT build
A semicolon was missing and "name" needs to be pointer-to-const. While
adding "const" there, also add it for "sec".
-rw-r--r-- | bfd/coffcode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 5d6be49..423f6c0 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -5028,11 +5028,11 @@ coff_classify_symbol (bfd *abfd, breaks gas generated objects. */ if (syment->n_value == 0) { - asection *sec; - char * name; + const asection *sec; + const char *name; char buf[SYMNMLEN + 1]; - name = _bfd_coff_internal_syment_name (abfd, syment, buf) + name = _bfd_coff_internal_syment_name (abfd, syment, buf); sec = coff_section_from_bfd_index (abfd, syment->n_scnum); if (sec != NULL && name != NULL && (strcmp (bfd_section_name (sec), name) == 0)) |