.globl _returnfive _returnfive: push ebp mov ebp, esp mov eax, 0x5 pop ebp ret .section .drectve .ascii " -export:\"returnfive\""
Looking into asm code generated by GCC, we can clearly see, that function generated with __declspec(dllexport) has an additional section called drectv, just under it's body:
.section .drectve .ascii " -export:\"returnfive\""
Which is added specifically for the linker, so pointed function can be included in the export table.
Of course, function name depends on the case. Changing call convention, adding function arguments (if using __stdcall), function decorations in C++, etc. so we have to type the proper function name as the export symbol.
Below you can find the source code for that method:
Source Code
This is a very nice post I m very like it and I appreciate you for good work keep it up it is very useful for me.
ReplyDeletejavascript training in chennai
javascript training
javascript training courses
javascript training classes
core java training in chennai
C C++ Training in Chennai
Appium Training in Chennai
JMeter Training in Chennai
Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks campingplatz holland mit hund
ReplyDeleteAfter going over a handful of the blog posts on your web site, I honestly like your technique of blogging. I saved as a favorite it to my bookmark site list and will be checking back in the near future. Please visit my website as well and tell me your opinion.
ReplyDeleteI need to to thank you for this fantastic read!! I absolutely loved every bit of it. I have you book marked to look at new stuff you post…
Click Here for more
Jio Information Available
Check 2019-20 List
Find Helpline Resources