flat assembler
Message board for the users of flat assembler.

Index > Main > [DLL] Can't export "Load" procedure

Author
Thread Post new topic Reply to topic
StrenoJr



Joined: 13 Mar 2014
Posts: 22
Location: Slovakia
StrenoJr 10 May 2015, 09:50
Hello.
The title says everything already.
I'm working on a DLL that needs to export a Load procedure for it's caller.
But with every
Code:
export  'inventory.dll', Load, 'Load'    
i get an "Error: reserved word used as a symbol" instruction: dd RVA Load (export.inc, line 15). Similarily using only
Code:
proc Load
endp    
throws the same error @ instruction "if used Load" in proc32.inc (line 53).
Is there any workaround to export (&use) a "Load" procedure?
Post 10 May 2015, 09:50
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20300
Location: In your JS exploiting you and your system
revolution 10 May 2015, 09:59
"load" is a reserved word. The error is correct. You can either rename your procedure or rename the "load" command in the fasm sources. But you can't have both together.
Post 10 May 2015, 09:59
View user's profile Send private message Visit poster's website Reply with quote
StrenoJr



Joined: 13 Mar 2014
Posts: 22
Location: Slovakia
StrenoJr 10 May 2015, 10:34
Where could I find the definition of Load in fasm sources?
Post 10 May 2015, 10:34
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20300
Location: In your JS exploiting you and your system
revolution 10 May 2015, 10:43
TABLES.INC
Code:
instructions_4:
;...
 db 'load',0
 dw load_directive-instruction_handler    
If you want to take that path then you can make a new name but be sure to sort it alphabetically and in the correct place for the length. And you will have to change it for all new versions of fasm that you download.

Wouldn't it be easier to change your source? Assuming your editor supports UTF8:
Code:
export  'inventory.dll', Löad, 'Load'
;...
proc Löad
endp    
Post 10 May 2015, 10:43
View user's profile Send private message Visit poster's website Reply with quote
StrenoJr



Joined: 13 Mar 2014
Posts: 22
Location: Slovakia
StrenoJr 10 May 2015, 11:24
Oh, like this!
Shame on me!
Thank you.
Post 10 May 2015, 11: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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.