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.
- 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:
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
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
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
Re:coff-i386 relocation??
Code: Select all
d-new -e start -Ttext 0x0 -o out.temp start.o main.o --oformat elf32-i386 --relocatable-- Stu --