[PATCH v2 1/7] ELF: Strip section header in ELF objects
Maciej W. Rozycki
macro@orcam.me.uk
Thu Jun 1 08:08:59 GMT 2023
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
More information about the Binutils
mailing list