Article View: gnu.utils.bug
Article #1349Strip deletes a.out's if linked.
From: Gordon Joly
Date: Wed, 27 Jan 1993 03:05
Date: Wed, 27 Jan 1993 03:05
35 lines
1761 bytes
1761 bytes
On SUN4, SunOS 4.1.1, gcc 2.3.3 compiled, strip version 1.94 (?)
porridge:gjoly/c[21] cc -o simple simple.c
porridge:gjoly/c[22] ln simple notso
porridge:gjoly/c[23] file simple notso
simple: sparc demand paged dynamically linked executable not stripped
notso: sparc demand paged dynamically linked executable not stripped
porridge:gjoly/c[24] ls -l simple notso
-rwxrwxr-x 2 gjoly 24576 Jan 26 09:21 notso
-rwxrwxr-x 2 gjoly 24576 Jan 26 09:21 simple
porridge:gjoly/c[25] strip simple notso
strip: simple: Error 0
porridge:gjoly/c[26] ls -l simple notso
-rwxrwxr-x 2 gjoly 0 Jan 26 09:21 notso
-rwxrwxr-x 2 gjoly 0 Jan 26 09:21 simple
porridge:gjoly/c[27] file simple notso
simple: empty
notso: empty
porridge:gjoly/c[28]
I discovered this when I tried to strip:
porridge:gjoly/Local/bin[126] ll gcc*
-rwxr-xr-x 2 gjoly 114688 Jan 7 16:37 gcc
-rwxr-xr-x 2 gjoly 114688 Jan 7 16:37 gcc-sparc-sun-sunos4.1.1
porridge:gjoly/Local/bin[127]
Gordon,
____
Gordon Joly Phone +44 71 387 7050 ext 3703 FAX +44 71 387 1397
Internet: G.Joly@cs.ucl.ac.uk UUCP: ...!{uunet,uknet}!ucl-cs!G.Joly
Computer Science, University College London, Gower Street, LONDON WC1E 6BT
Technical Details
Message-ID:
<9301261513.AA28668@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.ucl.ac.uk!G.JolyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.ucl.ac.uk!G.Joly From: G.Joly@cs.ucl.ac.uk (Gordon Joly) Newsgroups: gnu.utils.bug Subject: Strip deletes a.out's if linked. Date: 26 Jan 1993 22:05:42 -0500 Organization: GNUs Not Usenet Lines: 36 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-utils@prep.ai.mit.edu Distribution: gnu Message-ID: <9301261513.AA28668@life.ai.mit.edu>