OSDev.org
https://forum.osdev.org/

coff-i386 relocation??
https://forum.osdev.org/viewtopic.php?f=1&t=9742
Page 1 of 1

Author:  mblock [ Tue Jul 27, 2004 5:22 pm ]
Post subject:  coff-i386 relocation??

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

Author:  df [ Tue Jul 27, 2004 6:34 pm ]
Post subject:  Re:coff-i386 relocation??

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??

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/