OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Oct 15, 2019 10:35 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: coff-i386 relocation??
PostPosted: Tue Jul 27, 2004 5:22 pm 
hi,

i want to write a module loader for my os and i decided to use the coff-i386 format.... at the moment i compile these modules like this:
Code:
nasm -f elf start.asm -o start.o
gcc -c main.c -o main.o -fwritable-strings
ld-new -e start -Ttext 0x0 -o out.temp start.o main.o --oformat elf32-i386 --relocatable
objcopy-new --output-format=coff-i386 out.temp out

i recompiled the binutils for coff-i386 support (ld-new, objcopy-new)....
in the coff documentation from djgpp i read that there are only two relocation types: type2 and type20 but in my file i get also type1 and type2..... that's really crazy... can you tell me why? are this some remains from the elf32-i386 format?

i'm trying to relocate this ************* ******** for 2 weeks now.... please help me :)

thx
marcel


Top
  
 
 Post subject: Re:coff-i386 relocation??
PostPosted: Tue Jul 27, 2004 6:34 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
Code:
d-new -e start -Ttext 0x0 -o out.temp start.o main.o --oformat elf32-i386 --relocatable


if your trying to output coff-i386 (which imo is a HORRID file format. ugh.) why are you forcing your coff ld-new to output as elf??

_________________
-- Stu --


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 6 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group