I am testing an assembly program that is compiled by flatassembler, and it needs to modify the import table, so when I run objdump
I can see which external functions the program is trying to call.
So, I start off with:
format PE GUI
section '.flat' readable writeable executable
It is calling some functions in MS dlls, but the import table is wrong.
Here is a simple part showing how I am including two dlls and a function:
;user32
_MessageBoxA dw $0
db 'MessageBoxA', $0
kernel32_name db 'kernel32.dll', $0
user32_name db 'user32.dll', $0
What must be done in an assembly program to have the external functions show up in the import table?