Hacker News new | ask | show | jobs
by gbin 1596 days ago
The size computation is overblown no? A static link would probably remove most of the symbols as they are probably unused?
1 comments

The author specifically called that out. You are correct.

They also didn't look at DLLs used by other DLLs.

This is like a back-of-the-envelope calculation. A quick first pass to get an order of magnitude.

> They also didn't look at DLLs used by other DLLs.

If so, then the data is too wrong to be of any value.

However, ldd lists also indirect dependencies so I think this was already accounted for (though that might've been by accident):

~> readelf -d /bin/bash | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libreadline.so.8] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] ~> ldd /bin/bash linux-vdso.so.1 (0x00007fff15191000) libreadline.so.8 => /lib64/libreadline.so.8 (0x00007f2a24818000) libc.so.6 => /lib64/libc.so.6 (0x00007f2a2460e000) libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f2a245db000) /lib64/ld-linux-x86-64.so.2 (0x00007f2a249b1000)