Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bfd vs mold linker:final binary size # shocking example here
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Thu Mar 14, 2024 5:04 pm    Post subject: bfd vs mold linker:final binary size # shocking example here Reply with quote

Recently switched default linker to mold.

Having a whole set of /etc/portage/env files, it's quite easy to change per package build parameters.

I was wondering about lto/bfd & lto/mold binary size and experienced gui-apps/wlr-randr::guru which is just an example.

bfd got:
Code:
image/usr/bin/wlr-randr                             lto-no:   31040  lto:     26944  diff:  4096  #bin
mold got:
Code:
image/usr/bin/wlr-randr                             lto-no:   26080  lto:     26944  diff:  -864  #bigger-bin
Both lto have same size. As expected...

Hey, wait!!! Plz check the non lto binary size 8O
Sorry I felt off my chair :D

Every package installed here with lto size gain failure will be tested ld-bfd vs mold and reported here when mold does better.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Fri Mar 15, 2024 12:51 am; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Thu Mar 14, 2024 7:25 pm    Post subject: Reply with quote

another one with: x11-wm/openbox
bfd:
Code:
image/usr/bin/gdm-control                                              lto-no:   14520   lto:     14520   diff:  0       #same-bin
image/usr/bin/gnome-panel-control                                      lto-no:   14368   lto:     14368   diff:  0       #same-bin
image/usr/bin/obxprop                                                  lto-no:   14504   lto:     14504   diff:  0       #same-bin
image/usr/bin/openbox                                                  lto-no:   362296  lto:     378680  diff:  -16384  #bigger-bin
image/usr/lib64/libobrender.so.32.0.0                                  lto-no:   105464  lto:     113288  diff:  -7824   #bigger-lib
image/usr/lib64/libobt.so.2.0.2                                        lto-no:   72680   lto:     72584   diff:  96      #lib
mold:
Code:
image/usr/bin/gdm-control                                              lto-no:   11024   lto:     14520   diff:  -3496   #bigger-bin
image/usr/bin/gnome-panel-control                                      lto-no:   7200    lto:     14368   diff:  -7168   #bigger-bin
image/usr/bin/obxprop                                                  lto-no:   12592   lto:     14504   diff:  -1912   #bigger-bin
image/usr/bin/openbox                                                  lto-no:   359056  lto:     378680  diff:  -19624  #bigger-bin
image/usr/lib64/libobrender.so.32.0.0                                  lto-no:   100088  lto:     113288  diff:  -13200  #bigger-lib
image/usr/lib64/libobt.so.2.0.2                                        lto-no:   67856   lto:     72584   diff:  -4728   #bigger-lib

lto is no good for x11-wm/openbox.

mold lto-no binaries are much smaller though

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum