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
61 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
114 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
1 vote
0 answers
59 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
343 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
2 votes
1 answer
279 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
1 vote
0 answers
306 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
0 votes
1 answer
409 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
1 vote
0 answers
298 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