@kodabb I don't think it's a problem to satisfy @laurentbercot's request, but 3% in static libc size is prob. <0.1% final static binary size
@lu_zero_ @laurentbercot PIC is historically quite costly on some targets, but better now.
-
-
@lu_zero_@laurentbercot Part is gcc badness (using fixed reg for GOT rather than a pseudo, etc.) and gcc is getting better. -
@lu_zero_@laurentbercot Part is the badness of the PLT ABI constraints; see http://ewontfix.com/18/ . Visibility or -fno-plt can help here. -
@lu_zero_@laurentbercot In@musllibc we're using protected visibility (conditionally if supported) to make PLT ABI a non-issue.
End of conversation
New conversation -
-
-
@RichFelker@lu_zero_@laurentbercot It was quite expensive on i386 due to scarce general purpose registers and the poor GCC implementation. -
@RichFelker@lu_zero_@laurentbercot GCC 5 included substantial PIC optimizations for archs without PIC support: https://software.intel.com/en-us/blogs/2014/12/26/new-optimizations-for-x86-in-upcoming-gcc-50-32bit-pic-mode …. -
@CopperheadSec@lu_zero_@laurentbercot Without PIC support? Perhaps you mean without efficient PC-relative addressing? -
@RichFelker@lu_zero_@laurentbercot Meaning without hardware PIC support like PC relative addressing to make it fast. -
@RichFelker@lu_zero_@laurentbercot And some have basic PC relative addressing (like 32-bit ARM) but x86_64 / ARMv8 make it nearly free. -
@RichFelker@lu_zero_@laurentbercot i386 is especially bad because wasting a register is a big deal though. Not as bad to do that on ARM. -
@CopperheadSec@lu_zero_@laurentbercot ARM doesn't waste a register for PIC (there's no ABI requirement for calling into PLT). -
@RichFelker@lu_zero_@laurentbercot Ah, didn't realize that. - 1 more reply
New conversation -
-
-
@RichFelker@laurentbercot yes, but is better to get numbers down in any case.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.