coff-i386 relocation??

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
mblock

coff-i386 relocation??

Post by mblock »

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: Select all

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
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:coff-i386 relocation??

Post by df »

Code: Select all

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 --
Post Reply