flat assembler
Message board for the users of flat assembler.

Index > Windows > MS COFF

Author
Thread Post new topic Reply to topic
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 10 Jan 2012, 00:02
Hello everyone! I was playig with MS COFF file format, but I get problems after linking obj file Sad I think I have problem in imports.. here's code and error.
Code:
format MS COFF
include 'win32ax.inc'
extrn printf
public _myproc1

section '.text' code readable executable
proc _myproc1
     push msg
     call dword[printf]
     add esp,4
     ret
endp
section '.data' data readable writeable
msg db "Hello, World!",0    

Code:
ld testobj.obj
testobj.objSad.text+0x7): undefined reference to `printf'    

P.S I'm using GCC's ld.exe
Post 10 Jan 2012, 00:02
View user's profile Send private message Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 244
Location: US
Yardman 10 Jan 2012, 01:15
[ Post removed by author. ]


Last edited by Yardman on 04 Apr 2012, 04:34; edited 1 time in total
Post 10 Jan 2012, 01:15
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 10 Jan 2012, 10:15
Oh, the libs! I was missing them (I was too tired when was doing it) Sad Thank you!
Post 10 Jan 2012, 10:15
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 10 Jan 2012, 14:25
How come you are always tired when you fail to do something?
Post 10 Jan 2012, 14:25
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 10 Jan 2012, 14:58
typedef
Because I don't have time for such things, I'm working too hard and trying to learn such things when I'm tired. Happy now ?
Post 10 Jan 2012, 14:58
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.