debugging - GDB an ELF File Under Win32 -
i wanted study elf relocation mechanism, assembled x86 assembly program using nasm produce elf file, under win32. used mingw32's gdb debug it. loaded nicely , view program using "list" command. however, couldn't run it. got following messages:
starting program: c:\projects\nasmprojects\test01\hello.o error creating process c:\projects\nasmprojects\test01\hello.o is there way around this?
is there way around this?
no.
first, have assembled relocatable object file (of type et_rel). there no os "run" such files -- oses support executing elf files, require linked executable (of type et_exec or et_dyn).
second, if manage link et_exec, still need os know how load , start executing such file. linux , solaris kernels know this, aix , windows kernels not.
Comments
Post a Comment