From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id BE4883857735; Fri, 21 Apr 2023 10:06:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE4883857735 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] bfd: fix STRICT_PE_FORMAT build X-Act-Checkin: binutils-gdb X-Git-Author: Jan Beulich X-Git-Refname: refs/heads/master X-Git-Oldrev: 0699f2d795cdb4bc4db2bcf438291ec09d21f0da X-Git-Newrev: ae272fb8a57bb03dcc8ff800bb1b861bdc79933f Message-Id: <20230421100606.BE4883857735@sourceware.org> Date: Fri, 21 Apr 2023 10:06:06 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2023 10:06:06 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dae272fb8a57b= b03dcc8ff800bb1b861bdc79933f commit ae272fb8a57bb03dcc8ff800bb1b861bdc79933f Author: Jan Beulich Date: Fri Apr 21 12:05:56 2023 +0200 bfd: fix STRICT_PE_FORMAT build =20 A semicolon was missing and "name" needs to be pointer-to-const. While adding "const" there, also add it for "sec". Diff: --- bfd/coffcode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 5d6be493325..423f6c070ef 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 =3D=3D 0) { - asection *sec; - char * name; + const asection *sec; + const char *name; char buf[SYMNMLEN + 1]; =20 - name =3D _bfd_coff_internal_syment_name (abfd, syment, buf) + name =3D _bfd_coff_internal_syment_name (abfd, syment, buf); sec =3D coff_section_from_bfd_index (abfd, syment->n_scnum); if (sec !=3D NULL && name !=3D NULL && (strcmp (bfd_section_name (sec), name) =3D=3D 0))