From: "Mark E." Newsgroups: comp.os.msdos.djgpp Subject: Re: Using strip --strip-debug on libraries Date: Tue, 13 Jun 2000 18:27:37 -0400 Organization: Snowball's Web Message-ID: References: <3946A07E DOT 98F13651 AT phekda DOT freeserve DOT co DOT uk> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.37.91.8 X-Trace: 13 Jun 2000 22:26:29 GMT, 129.37.91.8 Lines: 15 X-Complaints-To: abuse AT prserv DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Richard Dawe wrote: >> A more importtant question is: how did that library wind up with more >> than a single copy of init.o in it? One possibility is if the archive was created with 'ar rP'. The 'P' option prevents the directory part of the filename from being stripped until the filename is written into the archive. This also prevents 'init.o' in the archive from matching 'x/init.o' so 'x/init.o' gets added as another 'init.o'. When the library is stripped, the "duplicates" are then discarded. -- Mark E.: snowball3 AT bigfoot DOT com http://snowball.frogspace.net/