* [PATCH] bfd: fix STRICT_PE_FORMAT build
@ 2023-04-21 10:05 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-04-21 10:05 UTC (permalink / raw)
To: Binutils
A semicolon was missing and "name" needs to be pointer-to-const. While
adding "const" there, also add it for "sec".
--- 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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-21 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-21 10:05 [PATCH] bfd: fix STRICT_PE_FORMAT build Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).