OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 9:51 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ld coff outpurt-format?
PostPosted: Wed Jun 30, 2004 2:34 pm 
hi,

i want to write a module loader. i want to use the common object file format for my kernel modules.... but how can i create them? :) i can directly assemble a assembler program with nasm using coff as output-format but i want to program my modules in c :)
is there a ld-version which supports the coff-format? or do you know another good linker?

thx
mblock


Top
  
 
 Post subject: Re:ld coff outpurt-format?
PostPosted: Thu Jul 01, 2004 6:16 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
ld can be build to support just about every target architecture and file format. Whether or not your readily available ld supports COFF, or whether you have to build a custom one, depends on your build platform.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re:ld coff outpurt-format?
PostPosted: Thu Jul 01, 2004 7:05 am 
wow cool :)

and how can i do this?
i already downloaded and installed the binutils... what should i do to get coff-support?

thx
mblock


Top
  
 
 Post subject: Re:ld coff outpurt-format?
PostPosted: Thu Jul 01, 2004 8:02 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
Most simply by building a cross-compiler environment (highly recommended for OS development work anyway) and specifying a COFF target instead of the ELF target as written in the tutorial I just linked. That will not only give you a COFF ld, but a COFF as and COFF GCC, as well.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Markelov69 and 116 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group