[comp.os.mach] unexec.c for MACH?

yonezawa@m.cs.uiuc.edu (Noritake Yonezawa) (04/23/91)

Does anyone have an "unexec.c" that converts a running program
into a MACH-O format? I'd like to use it on NeXT 2.0.
Thank you in advance.


-- 
Noritake Yonezawa [yonezawa@cs.uiuc.edu]
Department of Computer Science
University of Illinois at Urbana-Champaign

mike@yalla.tuwien.ac.at (Michael K. Gschwind) (04/30/91)

In article <1991Apr23.153655.6344@m.cs.uiuc.edu> yonezawa@m.cs.uiuc.edu (Noritake Yonezawa) writes:

   Does anyone have an "unexec.c" that converts a running program
   into a MACH-O format? I'd like to use it on NeXT 2.0.
   Thank you in advance.

I seem to remember that core dumps are in Mach-O format as well.
Wouldn't the simplest way to unexec a file be to simply force a core
dump and execute this core dump. Probably some incantations will be
neceassry to make this Mach-O core dump file a 'real' binary. Maybe
somebody in the possession of more information could explain how this
would work or why this can't work?


Michael K. Gschwind, Dept. of VLSI-Design, Vienna University of Technology
mike@vlsivie.tuwien.ac.at	1-2-3-4 kick the lawsuits out the door 
mike@vlsivie.uucp		5-6-7-8 innovate don't litigate         
e182202@awituw01.bitnet		9-A-B-C interfaces should be free
Voice: (++43).1.58801 8144	D-E-F-O look and feel has got to go!
Fax:   (++43).1.569697