Questions tagged [dynamic-linking]
Dynamic linking defers much of the linking process until a program starts running. Dynamic linking permits a program to load and unload routines at runtine, a facility that can otherwise be very difficult to provide.
22 questions
4
votes
2
answers
617
views
Is a "dynamically-linked executable" ever referred to as that?
Example
When I run file on android-studio/bin/studio, I see:
android-studio/bin/studio: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64....
4
votes
4
answers
875
views
Design pattern to create a shared lib architecture
I am making a renderer as a hobby, one thing I thought to try is making the low levelAPI be dynamically swappable, i.e. you could have an opengl or vulkan backend and switch between the two without ...
0
votes
1
answer
984
views
How are symbols resolved in dynamic linking and loading?
I'm a CS student, and I'm doing a project on shared libraries and dynamic linking/loading. One of the questions I have to answer is how symbols are resolved with dynamic linking/loading. I've scoured ...
6
votes
1
answer
281
views
Dynamically load user code from a common library
My project aims to provide a common interface between multiple different HDL simulators, so users can write test benches that will work no matter the simulator used. In this situation, it is the ...
-1
votes
1
answer
85
views
Creating a "lite" version of shared library on Linux/POSIX in addition to full version
I have a large shared library, a collection of functions created from numerous .a files into libeverything.so. The code for the .a files is obviously compiled with -fPIC. I also have libeverything.a ...
2
votes
1
answer
155
views
Dynamic *dll substitution?
I got an architectural problem here.
Let say there is an IShell. It mainly responsible to map user's commands (represented as a linux-like strings) to an appropriate IExecutable's.
Those ...
1
vote
1
answer
1k
views
Merging algorithm for overlapping intervals
I have been searching for an efficient algorithm to merge overlapping intervals on a dynamic array of intervals. For example, (start time, end time) wise,
[(1, 2), (4, 8), (3, 10)]
becomes
[(1, 2)...
3
votes
2
answers
822
views
Why use dynamic linking for less-popular libraries?
I know the difference between static and dynamic linking. I know why the notion of a library is important. And I even know why you'd want to link something like OpenGL, platform-specific APIs, or ...
1
vote
2
answers
602
views
Will issues arise packaging libc and pthread with your C apps?
The issue I hit, is that I am packaging shared libraries with my code in order to load GNUTLS, except for libc, because I figured any system will have it. Most of them don't have the required 2.14 for ...
3
votes
2
answers
7k
views
Could Java import C++ classes from a library using JNA or JNI?
In past, I used JNI to access some winapi functions, however winapi is C and therefore just procedural. Now my plan is different and I need to know whether I'm going in the right direction. What I ...
5
votes
1
answer
853
views
Hot-patching a server: dynamically loading types from an uploaded assembly
In the current project I'm working on, some of the C# classes are being stored as source code in SQL Server database records, and executed as needed using CSScript. This is being done so that the ...
3
votes
3
answers
324
views
Can I include an LGPLv2.0-licensed XSLT stylesheet into my Apache v2.0-license nodejs package?
I am creating an open source tool which leverages some XSLT stylesheets in order to do its work, which is transforming XML to Java code. One of the stylesheets that I want to use is licensed under ...
2
votes
1
answer
113
views
Ensuring reliability of cross-compilation
Provided that my code is fully standards compliant with no undefined behaviour, how can I best assure that it will be possible to cross-compile my software for any architecture?
I had some ideas, but ...
8
votes
3
answers
5k
views
Why are there two different kinds of linking, i.e. static and dynamic?
I've been bitten for the n-th time now by a library mismatch between a build and deployment environment. The build environment had libruby.so.2.0 and the deployment environment had libruby.a. One ruby ...
12
votes
2
answers
7k
views
Why does Apple only allow for Static Frameworks on iOS?
Clearly Apple has the ability to create dynamically loaded libraries (known as frameworks) for iOS, as they ship several with XCode (such as UIKit). App developers only have the ability to create ...