[PATCH v2 1/7] ELF: Strip section header in ELF objects
H.J. Lu
hjl.tools@gmail.com
Thu Jun 1 15:58:27 GMT 2023
On Thu, Jun 1, 2023 at 1:09 AM Maciej W. Rozycki <macro@orcam.me.uk> wrote:
>
> On Wed, 31 May 2023, H.J. Lu via Binutils wrote:
>
> > diff --git a/bfd/elfcode.h b/bfd/elfcode.h
> > index e4e29f0dc57..81c08c7ae2d 100644
> > --- a/bfd/elfcode.h
> > +++ b/bfd/elfcode.h
> > @@ -1077,6 +1090,9 @@ elf_write_shdrs_and_ehdr (bfd *abfd)
> > || bfd_bwrite (&x_ehdr, amt, abfd) != amt)
> > return false;
> >
> > + if ((abfd->flags & BFD_NO_SECTION_HEADER) != 0)
> > + return true;
> > +
>
> Bad indentation: one space too many with `if' here (spotted by chance).
>
> Maciej
Will be fixed in the v3 patch.
Thanks.
--
H.J.
More information about the Binutils
mailing list