On Sun, Feb 14, 2021 at 09:54:15AM -0500, Daniel Jakots wrote:
> On Sun, 14 Feb 2021 15:23:05 +0100, Sebastien Marie <sema...@online.fr>
> wrote:
> 
> In the alpha diff, I would put the "-R .eh_frame -R .shstrtab \" line
> before the -K line so the -R things are grouped together.

I put it after in order to make more obvious it is a MD part (alpha is
the sole arch which remove such sections).

Some investigations:

-R .shstrtab was added in 2017

commit e8a1490d19dbdd7d68fc1a5e96fc7c5115e2c42a
from: deraadt <dera...@openbsd.org>
date: Sun Sep 17 16:33:07 2017 UTC
 
 Some further shrinking, but obviously not enough.  Something unknown
 caused bloat about a month ago (and it wasn't purely the ctf additions
 since those are being stripped).  Maybe the compiler generates
 different code when stronger debugging information is requested?
 

-R .eh_frame was added in 2004

commit ec828d0bd39e2262e00f331f64c0a74a91cf0e0c
from: miod <m...@openbsd.org>
date: Fri Nov  5 21:22:37 2004 UTC
 
 Binutils 2.15 require more aggressive stripping for installation media 
binaries,
 if we want to still fit on floppies (binaries carry one extra section now,
 which we don't need on installation media).
 ok deraadt@


I would be interested to know the bytes gained by removing these
sections. We might removed them on others archs too.

Thanks.
-- 
Sebastien Marie

Reply via email to