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
221 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
68 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
209 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
143 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/...