coff-i386 relocation??
Posted: 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:
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