zig icon indicating copy to clipboard operation
zig copied to clipboard

ElfDynLib: resolve lib from system paths

Open Cloudef opened this issue 1 year ago • 2 comments

Implements the base that should usually work that is

  • Check LD_LIBRARY_PATH if the binary is no setuid setgid binary
  • Check /lib, /usr/lib, in that order

The missing parts are:

  • DT_RPATH and DT_RUNPATH handling from the calling executable
  • Reading /etc/ld.so.cache

For more details check man page of dlopen(3)

Cloudef avatar Mar 18 '24 09:03 Cloudef

Is the x86_64-macos build bugged? Edit: seems like it unbugged itself

Cloudef avatar Mar 19 '24 02:03 Cloudef

Updated for BYOS changed Edit: seems like x86_64-linux-release bugged

Cloudef avatar Mar 20 '24 09:03 Cloudef