unstrip

Michael "Ford" Ditto ditto at cbmvax.UUCP
Sat Oct 8 02:51:15 AEST 1988


In article <1225 at umbc3.UMD.EDU> alex at umbc3.UMD.EDU (Alex S. Crain) writes:
>	Mike Ditto's unstrip.c program that was posted a little while ago
>has the nasty habit of zeroing out the entry point and executable flags
>in the executable. Here is a patch to fix that...

It's ld -r that resets F_EXEC and zeroes the entry address; there's no way
to find out what it was when unstrip is run.  Alex's patch to make it
0x80000 is fine for all Unix PC executables I've seen, though.

I never noticed the problem before because I never actually tried to execute
the output of unstrip; I only used it for adb'ing.
-- 
					-=] Ford [=-

"The number of Unix installations	(In Real Life:  Mike Ditto)
has grown to 10, with more expected."	ford at kenobi.cts.com
- The Unix Programmer's Manual,		...!sdcsvax!crash!elgar!ford
  2nd Edition, June, 1972.		ditto at cbmvax.commodore.com



More information about the Unix-pc.general mailing list