390 questions
1
vote
1
answer
106
views
Any reason why the ELF spec allows only one SHT_DYNAMIC section but doesn't forbid several PT_DYNAMIC segments
The ELF manual says that SHT_DYNAMIC sections can only appear once in any given ELF object file.
SHT_DYNAMIC: This section holds information for dynamic linking. An object file may have only one ...
0
votes
1
answer
215
views
Assembly loading at runtime for .NET and .NET Framework
I have a netstandard20 class library and a console application which has no direct reference to that class library. Instead I need to load that library at runtime so that types could be resolved ...
2
votes
0
answers
67
views
Dynamically load functions from all files in a directory in Clojure
Say I have a directory structure:
- src
-- scraper
--- scrapers
---- scraper_a.clj
---- scraper_b.clj
---- scraper_c.clj
--- scrape.clj
In each scraper_x.clj there are three functions, fetch, collect,...
1
vote
0
answers
90
views
FORCE:UNRESOLVED and symbol resolution on Windows
I am trying to understand how the /FORCE:UNRESOLVED linker flag is meant to be used on Windows. I would like to have a library built with unresolved symbols with the expectation that they will be ...
0
votes
2
answers
1k
views
"System.Management currently is only supported for Windows desktop applications" error when dynamically loading a DLL in .NET 6
I'm using the "Microsoft.Windows.Compatibility" package to get the baseboard serial number in a .NET 6 application. My code looks like this:
var searcher = new ManagementObjectSearcher("...
0
votes
1
answer
208
views
Reloading a dynamically loaded library with dlclose & dlopen works with Clang on Linux, but not with GCC
Consider the following loop
while (true) {
void* lib = dlopen("bin/liblibrary.so", RTLD_NOW | RTLD_LOCAL);
assert(lib);
typedef void (*f_t)(void);
f_t f = (f_t)dlsym(lib, &...
1
vote
0
answers
97
views
Prerendering Error in build when using CKEditor5 with NextJS
I'm using CKEditor 5 in my NextJS project but can not get it work in npm run build
<CKEditor
editor={ClassicEditor as any}
data={editorData}
onChange={(event, editor) =...
3
votes
1
answer
137
views
Dynamically loading _any_ assembly
... where by any assembly I mean also assemblies that depend on assemblies which are wrappers of native libraries.
The Minimal, Reproducible Example for this question is here:
https://gitlab.com/...
0
votes
0
answers
89
views
Identifying which global variable is allocated by which shared library
Assume there are shared libraries lib1, lib2, etc. each declaring and using one of its own global variable g_lib1, g_lib2, etc. I have the addresses of g_lib1, g_lib2, etc., as well as the names of ...
0
votes
1
answer
484
views
Declare a Function to use in FunctionPass with New Pass Manager using llvm::PassInfoMixin in LLVM 15
I'm currently working with LLVM 15.0.0 and facing a challenge while using the New Pass Manager and llvm::PassInfoMixin. My goal is to insert calls to a specific function within a FunctionPass, but ...
2
votes
0
answers
54
views
Appropriate approach for developing dynamically update-able Flutter app on Linux
What I want to implement ( linux platform )
My app could load and unload particular widget from different packages which is built separately.
The new widget could be replaced on run-time.
My app ...
0
votes
1
answer
45
views
Can I un-dynamicize a linked executable given a dynamic library?
Suppose I have a dynamically-linked executable which depends on symbols in libfoo and libbar; and that it works on my system, i.e. it finds appropriate versions of these shared libraries. Now, I want ...
0
votes
1
answer
172
views
Using dlopen and dlsym with a third party c++ library
Newbie question. Suppose there is a third party library ClassLibrary.so, which contains the class definition of a ClassTest and I don't have access to the source of ClassLibrary.so. Can I use ...
0
votes
0
answers
68
views
Access entity dynamically based on postgres/ sql db from springboot app based on configuration
I am building a springboot app which can connect to either sql or postgres db based on configuration. Entity for the two databases are slightly different. Is it possible to create 2 different entity ...
0
votes
2
answers
45
views
trans object of STL-class on interface which dynamicly load by dlopen
main.cpp
#include "string"
#include "unordered_map"
#include "iostream"
#include "dlfcn.h"
typedef void x(std::unordered_map<std::string, std::string> &...
0
votes
1
answer
415
views
Are dynamic libraries loaded on startup or only when required by executable
Take a C application running on Linux for example which is dynamically linked with a required shared library.
I know that the .so file should be found in the paths defined in the environment variable ...
3
votes
2
answers
2k
views
Dynamic import with multiple modules
I had this code before and it worked fine (just showing the imports here):
import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
I thought I can load them ...
3
votes
1
answer
598
views
Different version require of CMake results dlopen "undefined symbol"
I'm building with g++/KDevelop/CMake(3.16.3).
Before I put cmake_minimum_required( VERSION 3.0.0 ) in the first line of my CMakeLists.txt and everythings OK, now I need change it to ...
4
votes
0
answers
797
views
Binary with RPATH not finding transitive dependencies if one of them has RUNPATH
I've been reading for a while about how the dynamic linker/loader works, RPATH vs RUNPATH, direct vs transitive dependencies, etc. My understanding so far is that if a binary has RPATH (not RUNPATH), ...
0
votes
2
answers
2k
views
Kubernetes Config Map reload issue
I am having Kubernetes Config map in spring boot project and My application should dynamically get the values from config map if any values changes in config map so for that I have used spring cloud ...
2
votes
1
answer
756
views
Exclude react-quill from vendor and bundle size
import React from 'react';
import clsx from 'clsx';
import ReactQuill from 'react-quill';
import 'react-quill/dist/quill.snow.css';
import styles from './styles.scss';
interface Props {
label: ...
1
vote
0
answers
211
views
Is there a meaningful design decision behind Rust's static compiling be default?
I am exploring the option to dynamically load libraries at runtime in Rust. I am still a Rust newbie, so I found several articles detailing why this is not the recommended way.
Plugins in Rust
...
0
votes
0
answers
200
views
Dynamic Load Class from within an unmanaged DLL
I am trying to dynamically load classes from within an unmanaged (COM) DLL. I am not sure the language it was written in, it is 3rd party that does not exist anymore.
I am able to use NativeLibrary....
2
votes
0
answers
1k
views
.NET 6 exclude runtime assets of transitive dependencies
I'm working on a plugin module for a .NET 6 app and I was following this Microsoft Docs guide, however I hit a problem while dynamically loading the plugin assemblies.
I want to achieve the following ...
1
vote
0
answers
419
views
How can I dynamically load modules that rely on modules in my main bundle?
I want to have my main application deployed in a bundle, but allow other developers to author extension modules, which will be dynamically loaded on demand.
Code is written in TypeScript and I am ...