flat assembler
Message board for the users of flat assembler.

Index > Programming Language Design > How does dynamic linking work in other "linkers" than FASM?

Author
Thread Post new topic Reply to topic
Memnarch



Joined: 13 Mar 2012
Posts: 7
Memnarch 20 Sep 2017, 06:24
Hi,
OK i know FASM is not a pure linker, but i wen't a bit out of space in the Title.
Given the following case, i have:
A.dll, exports Foo
B.dll, exports Foo
I want to link Bar.exe against both functions.

In FASM this is quite simple by specifying the IDATA-Section. However, how is this case resolved for linkers like in MSVC and LLVM? Those always need importlibraries(which you'd need to create on the fly if you don't have them).
Would you simply create 2 importlibraries on the fly for A/B which define aliases for the functions and use those aliases inside Bar.exe?

In the end, it ends in the IDATA-Section, too. But the route is different.

Greetings
Memnarch
Post 20 Sep 2017, 06:24
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.