tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Trivial program size inflation



> On Jul 1, 2023, at 6:20 PM, Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
> 
> On Sat, Jul 01, 2023 at 02:25:03PM +0000, RVP wrote:
>> Not to forget the code for C++ support. And, of course even static
>> binaries may call dlopen() and friends. So that dl*() and the ELF bits
>> right there.
> 
> At least in 9.3, dlopen() in a static binary does not work. Try using 
> a NSS module from a statically lunked binary to check that.

Right, because the dynamic linker is not loaded into static binaries.  For dynamic binaries, the kernel maps it as the program’s interpreter.

-- thorpej



Home | Main Index | Thread Index | Old Index