Development Notes and Changelog

Last update: 2021-04-06 12:10:01 +0800 +0800
Available translations: 日本語 / 中文(简体) / 中文(繁體)

2024-01-16 #

VS Code Virtual Space #

VS Code lacked virtual-space support for years. Issue microsoft/vscode#13960 tracked the feature from 2016 until it was finally resolved in 2024.

Static Linking with Libtool #

LT_INIT configures how a project builds its libraries. It does not control the final linker mode for an executable.

When libtool drives the link step, LDFLAGS=-static is forwarded into the command line, but that does not guarantee a fully static binary if the transitive dependencies are only available as shared objects.

sh
/bin/sh ../libtool --silent --tag=CC --mode=link gcc ... -static -o file file.o seccomp.o libmagic.la -lm -lz

The useful checks are:

  • inspect the actual link command with make -d;
  • run ldd on the result;
  • verify that every required library is available as a static archive before expecting a fully static executable.

Comments

Read or comment on GitHub (sign-in required to comment)