Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!orchid!clyde!rutgers!lll-lcc!pyramid!prls!mips!dce From: dce@mips.UUCP Newsgroups: comp.unix.questions Subject: Re: unstrip option for strip needed Message-ID: <300@quacky.mips.UUCP> Date: Tue, 14-Apr-87 22:34:49 EST Article-I.D.: quacky.300 Posted: Tue Apr 14 22:34:49 1987 Date-Received: Fri, 17-Apr-87 05:06:37 EST References: <14400006@rsdandy> Reply-To: dce@quacky.UUCP (David Elliott) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 36 In article <14400006@rsdandy> loof@rsdandy writes: > >As root I ran "find / -name '*' -exec strip {} \;". >Now programmers on system complain that adb does not work as before on some >files. > >So I tryed "find / -name '*' -exec unstrip {} \;". >My system can not find the unstrip command. > >What am doing wrong? Is there be a option for strip to unstrip. Do you >have a unstrip program to help me. Interestingly enough, such a thing has actually been implemented (look, I know what "Loof Lirpa" backwards is, but what the heck?). In Tektronix's UTek system, the strip command has options that allow you to do things like run strip on a file and put the output in another file (Andrew Klossner had an application where he was copying a huge object file and then stripping it, and it was worthwhile to have strip be able to do this in one shot to save time) and an option to put the stripped string table into a separate file. The resulting string table file contained the original header with a special magic number (I think) so that it could be put back in the object file. Another command, called unstrip (what else?), could be used to put the files back together. The idea was that we could ship stripped binaries around and put the header back on when we needed to debug it. If you could do this with sdb or dbx information, you'd really have something! -- David Elliott {decvax,ucbvax,ihnp4}!decwrl!mips!dce