[PATCH 0/6] ELF: Strip section header in ELF objects

Andreas Schwab schwab@linux-m68k.org
Tue May 30 18:45:26 GMT 2023


On Mai 30 2023, H.J. Lu via Binutils wrote:

> Section header isn't mandatory on ELF executable nor shared library.
> This patch set adds a new linker option, -z nosectionheader, to omit ELF
> section header, an new objcopy and strip option, --strip-sections, to
> remove ELF section header.

IMHO --strip-sections is too easily confused with --remove-section.  How
about naming it --strip-section-headers?

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Binutils mailing list