[2019-02-01 17:49] Andreas Schwab <[email protected]>
> On Feb 01 2019, Dmitry Bogatov <[email protected]> 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
--
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils