Sergei Trofimovich · @trofi
18 followers · 13 posts · Server fosstodon.org

TIL use of gnulib's obstack API on glibc systems adds exported dynamic symbols to final binaries (normally harmless but somewhat unusual thing for programs that don't load plugins).

Even '/bin/ls' has a few of those exported out of a binary:

$ nm -D `which ls` | grep -v '^ '
00000000004c0d40 T _obstack_allocated_p
0000000000534808 D obstack_alloc_failed_handler
00000000004c0bd0 T
...

lists.gnu.org/archive/html/bug

#gnulib #bug #DynamicLinking

Last updated 2 years ago

Julien M. · @julm
485 followers · 4935 posts · Server framapiaf.org

: « Generating small binaries in  »
- : « Introduce dependencies with care »
- : « consider passing the -dynamic flag to  »
- : « Running the command over your binaries will shrink the by about 1/3 »
- : « , which is a mature executable packer. »
dixonary.co.uk/blog/haskell/sm

#upx #compression #filesize #strip #stripping #ghc #DynamicLinking #dependencies #haskell #AlexDixon

Last updated 5 years ago