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.

0 votes
0 answers
78 views

I have a shared library, say libfoo.so.a.b.c that has been provided to me (I do not know its internals); it runs some static initialisation upon linking with an executable. If I create symlinks with ...
Simon Rose's user avatar
0 votes
0 answers
39 views

I am working on a debugger and found an issue. I start at the beginning of the dynamic linker (this is a low-level debugger). At this address, I set it so that for a particular signal, the process ...
well-mannered-goat's user avatar
0 votes
0 answers
132 views

After having deactivated ASLR, with: echo 0 | sudo tee /proc/sys/kernel/randomize_va_space I used ldd /path/to/binary to get the address of the shared library that my binary (written in C) was using, ...
rustymanito's user avatar
9 votes
1 answer
1k views

I've been running the same 32-bit, 3rd-party, closed-source binary since 2018. This week on debian trixie/testing servers (possible due to a libc6 transition?) the program began to crash on startup. ...
Stewart's user avatar
  • 16.1k
1 vote
0 answers
66 views

I was trying to understand Visibility values in ELF file , and I couldn't Understand the difference between STV_HIDDEN and STV_INTERNAL . After some reseach I found that this may be related to how ...
AbdAllah Talaat's user avatar
0 votes
0 answers
211 views

I downloaded the source code for UW-IMAP/imap-2007f_upstream from the URL below. https://github.com/uw-imap/imap/archive/refs/tags/imap-2007f_upstream.tar.gz I compiled it, but libc-client.so.2007 was ...
Zeotech's user avatar
0 votes
0 answers
356 views

I'm trying to build GCC 12.4.0 on Oracle Linux 9.4 (sorry about that... not my choice of distribution), as a non-root user. So, I've downloaded and built my relevant prerequisites: gmp, mpfr, mpc, isl,...
einpoklum's user avatar
  • 11.1k
0 votes
0 answers
668 views

I'm trying to use a Qt6-based program, namely NVIDIA's Nsight Compute UI, on a machine running SLES 15 SP5 (SUSE Enterprise Linux 2015, service pack 5). No, I can't switch distributions, it's not my ...
einpoklum's user avatar
  • 11.1k
2 votes
1 answer
301 views

I have an sample application and an make file. main.c file contents #include <stdio.h> /*int mainentry_entry(int argc, char *argv[]) {*/ int main(int argc, char *argv[]) { int i; ...
user3035194's user avatar
0 votes
0 answers
517 views

My Linux distribution (openSUSE Slowroll) accidentally shipped some incompatible libraries recently due to its experimental nature, lacking adequate automated testing using openQA, that caused the ...
Pavin Joseph's user avatar
1 vote
0 answers
333 views

I am writing a real-time linux application where I need to prevent any page faults from occuring after the initial startup of my application. My initial thought was just to call mlockall(MCL_CURRENT | ...
Jay S.'s user avatar
  • 61
1 vote
0 answers
128 views

When we run ldd on some file, there are two possible results: If the file is dynamic executable, the shared dependencies are shown, for example: # ldd /usr/bin/sleep linux-vdso.so.1 (...
Elisa K. K.'s user avatar
0 votes
1 answer
424 views

/* dlsym-main.c */ #include <stdio.h> void doSomething(char const *msg) { fprintf(stderr, "Main program is doing %s\n", msg); } void (*fnptr)(char const *) = doSomething; int ...
user3384486's user avatar
5 votes
2 answers
538 views

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
  • 53
1 vote
0 answers
314 views

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

15 30 50 per page
1
2 3 4 5
19