[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How create small binaries with GNU binutils.
From: |
Dmitry Bogatov |
Subject: |
Re: How create small binaries with GNU binutils. |
Date: |
Sun, 03 Feb 2019 12:58:14 +0000 |
[2019-02-01 17:49] Andreas Schwab <address@hidden>
> On Feb 01 2019, Dmitry Bogatov <address@hidden> wrote:
>
> > results in huge binary:
> >
> > $ du -hb a.out
> > 4744 a.out
> > $ strip -s a.out
> > $ du -hb a.out
> > 4408 a.out
> > $ file a.out
> > a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically
> > linked, stripped
>
> I cannot reproduce that.
>
> $ stat -c %s a.out
> 664
> $ strip a.out
> $ stat -c %s a.out
> 344
> $ size a.out
> text data bss dec hex filename
> 13 0 0 13 d a.out
> $ rpm -q binutils
> binutils-2.31.90-lp150.5.68.1.x86_64
Interesting. I tried bintuils, packaged by Nix, and resulted (after
strip -s) exactly 400 bytes. I will report debian packaging.
Still, even this way, 400 bytes is more then twice as big, compared to
fasm. Any suggestions, how to shrink binary futher?
--
Note, that I send and fetch email in batch, once every 24 hours.
If matter is urgent, try https://t.me/kaction
--
- How create small binaries with GNU binutils., Dmitry Bogatov, 2019/02/01
- Re: How create small binaries with GNU binutils., Andreas Schwab, 2019/02/01
- Re: How create small binaries with GNU binutils.,
Dmitry Bogatov <=
- Re: How create small binaries with GNU binutils., Nick Clifton, 2019/02/04
- Re: How create small binaries with GNU binutils., Dmitry Bogatov, 2019/02/05
- Re: How create small binaries with GNU binutils., Nick Clifton, 2019/02/07
- Re: How create small binaries with GNU binutils., Dmitry Bogatov, 2019/02/13
- Re: How create small binaries with GNU binutils., Nick Clifton, 2019/02/13
- Re: How create small binaries with GNU binutils., Dmitry Bogatov, 2019/02/15