Skip to main content

Questions tagged [dynamic-linking]

In computing, a dynamic linking is the process of an operating system (OS) that loads (copies from persistent storage to RAM) and links (fills jump tables and relocates pointers) the shared libraries needed by an executable at run time, that is, when it is executed.

1 vote
0 answers
7 views

Do executables in different containers share shared objects that are define in the same common image layer?

I am investigating the memory impact of containerising two processes that depend on the same shared object. My main question is whether the shared object will be loaded in memory twice or not. This ...
A.G's user avatar
  • 11
1 vote
0 answers
9 views

Why might RUNPATH be ignored by the loader after system libraries are found?

I have an executable which is linked with several dynamic libraries (.so). These libraries are found in 2 different local folders. When linking the executable, the RUNPATH of the executable is ...
Patrick B.'s user avatar
1 vote
0 answers
24 views

when is the environ symbol defined in the executable?

If I compile a simple test program, I get environment symbols defined (and exported) in the executable itself: root@4ef8c4a55769:/# clang --version Debian clang version 11.0.1-2 Target: aarch64-...
Artefacto's user avatar
  • 245
1 vote
0 answers
28 views

ldconfig behaving differently in /usr/lib and /usr/local/lib

I'm in an ubuntu 22.04 and have a binary that can't execute because it's missing libssl.so.10: ./nGeMTools ./nGeMTools: error while loading shared libraries: libssl.so.10: cannot open shared object ...
Marco Montevechi Filho's user avatar
1 vote
0 answers
23 views

Mamba broken after updating ssl. ImportError: cannot dynamically load position-independent executable

I work on a linux server that is running Ubuntu. I have been using miniforge to manage environments with packages for specific tasks. Previously, I was using a global install of anaconda in but ...
Weston Elison's user avatar
0 votes
1 answer
153 views

Changing the path opened by openat of a program using LD_PRELOAD

I want to change a path that a program actually opens on filesystem for some paths. The reason is that I want to run a program in parallel, but that program uses /tmp/somedir/ as its temporary ...
Tomáš Zato's user avatar
  • 1,776
0 votes
0 answers
44 views

Linux so convention: is the .so link intended to come from dev packages?

On my Ubuntu jammy Linux PC, after installing the libuv1 package (apt-get install libuv1), I noticed that there was a file, named libuv.so.1.0.0 and a symbolic link to it, named libuv.so.1: $ find /...
StoneThrow's user avatar
  • 1,797
0 votes
3 answers
244 views

Making changes to the shared library

Suppose we have a C program that uses the shared library. If you make changes to a shared library and rebuild it, all programs using that library will automatically receive those changes the next time ...
dsa14dfS's user avatar
1 vote
0 answers
117 views

Runtime library search order on AIX

If I understand correctly, the variables LIBPATH and LD_LIBRARY_PATH have a higher priority than the argument to the linker -blibpath. I'm looking for how to tell the loader to search for libraries ...
ibse's user avatar
  • 341
0 votes
2 answers
965 views

gdbus symbol look up error

I'm using Archlinux. After a recent update, I find that the gdbus doesn't work and it presents a symbol lookup error: ➜ tidedra@ZgrArch ~ gdbus gdbus: symbol lookup error: /usr/lib/libgobject-2.0.so....
GearyZhang's user avatar
1 vote
2 answers
424 views

Hacking LD_LIBRARY_PATH to use a recent bash from a chroot

I try to get a more up to date version of bash from LinuxMint. I have a chroot with Debian Sid in my box. What I try to do in a bash wrapper script, early in my PATH #!/bin/bash LD_LIBRARY_PATH=/path/...
Mévatlavé Kraspek's user avatar
1 vote
0 answers
184 views

Provide a link order for `.so` libraries

I need to dynamically link to a number of .so shared libraries from R. R can only do this one at a time using the dyn.load function, which takes the file path of the shared object. However, if the ...
Migwell's user avatar
  • 417
1 vote
0 answers
176 views

How do AppImage tools decide what .so files to include? Why produced different .so-files-including list from different distros?

Compiled a Qt project and created .AppImage for it, on two different Linux distros ( Qt was installed via different ways). The two output .AppImage contain different .so files. Both .AppImage run. I ...
garywill's user avatar
2 votes
1 answer
628 views

How are system call functions linked to an executable?

Say I write a non-sensical program that features a single system call, open: #include <fcntl.h> void main() { int hi = open("does not exist", 0); } When I compile the program ...
Izzo's user avatar
  • 971
1 vote
0 answers
256 views

What's the difference between _init vs _start?

_start runs first, even though _init is pointed to by the DT_INIT dynamic entry as the initialization function. Could someone explain to me the purpose of DT_INIT if it seems to serve no purpose as ...
RabidProgrammer555's user avatar

15 30 50 per page
1
2 3 4 5
18