DJGPP ELF Linker problems

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
Unspoken_Magi

DJGPP ELF Linker problems

Post by Unspoken_Magi »

Hmm...

Code: Select all

ld-elf -O2 -s -o .\bin\kernel.elf -T .\kernel\kernel.ld .\o\kstart.o
Exiting due to signal SIGSEGV
General Protection Fault at eip=00067ac7
eax=fff50008 ebx=000001ff ecx=000002b7 edx=fff50000 esi=00000008 edi=00000000
ebp=000ba018 esp=000ba008 program=H:\NZ\DJGPP\BIN\ld-elf.exe
cs: sel=0517  base=02b70000  limit=7d47ffff
ds: sel=051f  base=02b70000  limit=7d47ffff
es: sel=051f  base=02b70000  limit=7d47ffff
fs: sel=04ef  base=00011f70  limit=0000ffff
gs: sel=052f  base=00000000  limit=ffffffff
ss: sel=051f  base=02b70000  limit=7d47ffff

Call frame traceback EIPs:
  0x00067ac7
  0x00067a4d
  0x0006bbbb
  0x0006c465
  0x000671ff
make.exe: *** [.\bin\kernel.elf] Error -1
It crashes DJGPP make, but it works if I type it at the prompt.

ld-elf -O2 -s -o .\bin\kernel.elf -T .\kernel\kernel.ld .\o\kstart.o
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:DJGPP ELF Linker problems

Post by df »

if this is under windows, well djgpp does not work very well with windows.

cygwin works perfectly with windows...

cant really help ya much.
-- Stu --
Unspoken_Magi

Re:DJGPP ELF Linker problems

Post by Unspoken_Magi »

I'm not THAT willing to switch compilers... :(

DJGPP works fine, but the ld-elf and gcc-elf files I just downloaded, and they don't seem to work...
beyondsociety

Re:DJGPP ELF Linker problems

Post by beyondsociety »

Thats because djgpp doesn't support elf unless you re-compile it do so. Here the link on what you need to do in order to support elf on DJGPP.

http://www.mega-tokyo.com/os/os-faq-elf.html#elf_files

If you have already done this, then I can't really help you. Df knows alot more about supporting elf than I do.

Hope this helps.
Post Reply