delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/13/18:30:18

From: "Mark E." <snowball3 AT bigfoot DOT com>
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: <hvcdkscvir1k68onuuqnigogrfn3jnl3d5@4ax.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000613131528 DOT 16888J-100000 AT is> <3946A07E DOT 98F13651 AT phekda DOT freeserve DOT co DOT uk>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
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 <rich AT phekda DOT freeserve DOT co DOT uk> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019