[comp.unix.questions] unstrip option for strip needed

loof@rsdandy.UUCP (04/02/87)

Dear Net People,

I Loof, need most your help.  I receive new job as Xenix System V Manager.
At moment I am urgent in need for help on problem.

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.

Thanks and please help.

Loof Lirpa
w

ken@rochester.UUCP (04/14/87)

Well, first of all the "-name '*'" is redundant.

Secondly, I'll trade you an unstrip program for an unrm program. Howzzat?

	Ken

pdg@ihdev.UUCP (04/15/87)

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.

Have they also tried ps, ipcs etc....??  None of these will work
either.  Stripping /unix certainly does not do any good.

>
>So I tryed "find / -name '*' -exec unstrip {} \;".
>My system can not find the unstrip command.

It's called cc.  Recompile *everything* on your system including the
kernel.  Either that or reload all objects from a recent backup.

Before using a command as root, its wise to read the manual carefully.

-- 

Paul Guthrie
ihnp4!ihdev!pdg			This Brain left intentionally blank.

dce@mips.UUCP (04/15/87)

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

keithe@tekgvs.TEK.COM (Keith Ericson) (04/15/87)

In article <14400006@rsdandy> loof@rsdandy writes:
>
>
>Dear Net People,
>
>I Loof, need most your help.  I receive new job as Xenix System V Manager.
>...
>What am doing wrong?  Is there be a option for strip to unstrip.  Do you
>have a unstrip program to help me.

I have an unstrip program that I use regularly. It only runs under
privileged logins, and only during off (night-time) hours. It is
semi-intelligent in that it knows not to unstrip already unstripped files
(otherwise adb complains about "multiple unstrips" or some such strangeness.)

Another limitation is that it only runs on my AT Clone under CP/M-80
emulation mode, so porting it to your Zenix system may be (or "C")
difficult. And I don't have the sources anymore; once I stripped the
executable there didn't seem to be much sense in keeping it around.

If you want it let me know. If you don't want it, let me know. If you didn't
get this message let me know. I don't know. Do you know? (But I digress...)

htiek (your smileage will very) noscire 

lyndon@ncc.UUCP (Lyndon Nerenberg) (04/16/87)

In article <1325@ihdev.ATT.COM>, pdg@ihdev.UUCP writes:
> [...]
> 
> Before using a command as root, its wise to read the manual carefully.

Before replying to an article, it's wise to read the headers :-)

pdg@ihdev.UUCP (04/17/87)

OK.  My face is red for following up too quickly on the unstrip april
fools gag.  It arrived too slowly for me to catch it.  I guess I'll
have to go to the doctor and see about the random spasms on my 'F'
finger.  You can all stop sending me mail rubbing it in now......

I do know of a situation where someone really did do this, though, (Hi
Andy :-) so I could well believe the gag.
-- 

Paul Guthrie
ihnp4!ihdev!pdg			This Brain left intentionally blank.