All Questions
508
questions
1
vote
0
answers
32
views
Link function calls against reverse engineered binary
I created an windows x86 .exe file that I reverse engineer. Imagine I only have the .exe file and I reverse engineered some functions.
The goal is to create a dll that links with this .exe so the dll ...
0
votes
0
answers
117
views
How to create in Rust a forwarded dll export with a mangled name
I'm trying to create a Windows DLL in Rust that proxies one of its exported functions to a function in another dll (other.dll). The problem is that the other.dll exported name is mangled, something ...
0
votes
0
answers
14
views
How to link dlls to each other in CMake?
For msvc, to resolve the problem when two DLLs dependent on each other, it generateS an exp file for linking. But in CMake, if I write
target_link_libraries (A PUBLIC B)
target_link_libraries (B ...
0
votes
0
answers
23
views
CMake: Rebuild target if linked .dll changes
I have the following CMakeLists.txt:
cmake_minimum_required(VERSION 3.20.0 FATAL_ERROR)
project(link_test)
add_library(my_lib1 SHARED my_lib1.c)
add_library(my_lib2 SHARED my_lib2.c)
...
0
votes
1
answer
101
views
How does Python consume DLL files without needing the import file (.lib)?
I just finished a tutorial on building a DLL library. From the tutorial I learnt that a DLL also has an associated lib file, which the linker will use to statically linked in information to the client ...
1
vote
1
answer
105
views
How to use .def files to create forwarded exports in a Rust dll (cdylib)
I'm trying to add a forwarded exported function on my Rust crate by passing a .def file to the MSVC linker. I've created the following simple .def file:
EXPORTS
ExportName=ForwardedModule....
0
votes
0
answers
23
views
Bad image DLL when linking using /INTEGRTIYCHECK option
I am trying to create a simple DLL called lib.dll that has the /INTEGRITYCHECK option which from i understand that it will check for digital signatures in an exe or DLL.
I signed the lib.dll with a ...
2
votes
0
answers
76
views
thirdparty DLL with /Fixed header option
I have a program A.exe which is linked dynamically with a.dll.
a.dll is a 3rd party DLL that is linked with the /FIXED option. I know this because its DLL Characteristics is 0 when I see it with ...
2
votes
1
answer
155
views
Calling simple "Hello World!" function from a compiled C DLL from Python results in OSError: exception: access violation
The C code:
// my_module.c
#include <stdio.h>
__declspec(dllexport)
void hello() {
printf("Hello World!\n");
}
__declspec(dllexport)
int add_numbers(int a, int b) {
return a ...
0
votes
0
answers
47
views
What is the difference between GCC options `-shared` and `-mdll` (Windows specific)?
The document describes quite obscurely that the linker option -shared generates a shared object, and the Windows specific option -mdll generates a dynamic link library. I don't think this information ...
0
votes
0
answers
57
views
Migrating VS2012 Project to VS2022 ==> Getting Linking errors, seems that directory can't properly parsed
I migrate a VS2012 proj into VS2022 proj and was able to solve a lot of problems. I'm in the last step which makes me trouble. It looks like that the linker can't parse the directory for specific dll'...
0
votes
0
answers
117
views
What is the Initial Values of IAT (Import Address Table) Stand for?
In PE header, there are import directory which describes where the loader should bind the imported symbols. More precisely:
typedef struct _IMAGE_IMPORT_DESCRIPTOR {
union {
DWORD ...
0
votes
0
answers
163
views
Bazel linking .dll for SDL2 project
I was wondering how to properly set up the Bazel target for SDL2 with the Windows dynamic and static libraries. What can I change in my BUILD file to account for the .dll files for the Windows SDL2 ...
0
votes
2
answers
93
views
How to link libraries in Qt project?
I'm trying to add parts of directshow example from libirimager library to my own Qt project. I can't link IRImager class. It has only header IRImager.h in sdk directory. In my main.cpp I just added ...
1
vote
0
answers
36
views
Is it safe to just rename a windows library on disk?
I have a fork of a large open source repository that generates a library "tvm.dll".
When distributing my version of the library I want to rename it so that it can be differentiated from the ...