flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Registering Import Address Table (Thunk Table) in PE header

Author
Thread Post new topic Reply to topic
386



Joined: 11 Nov 2023
Posts: 28
Location: Ukraine (Ruthenia)
386 15 Nov 2023, 12:26
Here is the problem that is not covered by standard FASM macroses and examples:

http://board.flatassembler.net/topic.php?p=235987

As I see, a tiny modification of standard import macros in needed.
Post 15 Nov 2023, 12:26
View user's profile Send private message Reply with quote
386



Joined: 11 Nov 2023
Posts: 28
Location: Ukraine (Ruthenia)
386 15 Nov 2023, 22:15
Hm. Actually, it was a bugreport! So I've posted it to Compiler Internals.

The problem is: standard import macroinstruction generates bad imports.

Maybe for PE GUI and PE Console programs it's not a problem, but for some kernel-mode drivers is!

The problem was solved by adding data 12 directive.

Is it possible to fix/update 'IMPORT32.inc' file in the next FASM release? Smile
Post 15 Nov 2023, 22:15
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.