Mail Archives: djgpp/2000/06/13/06:21:37
On Sun, 11 Jun 2000, Richard Dawe wrote:
> The other day I ran strip with the '--strip-debug' option on a library.
> The library I ran it had several files named 'init.o' within. I found that
> after stripping, there was only one file called 'init.o'. Is strip
> supposed to work this way? It seems counter-intuitive to me that strip
> would rewrite the archive's table o'contents (TOC).
That `strip' rewrites the TOC seems reasonable: it rewrites the entire
archive, after all. What you need to make sure that it leaves the
last copy of init.o in the archive and removes the rest.
A more importtant question is: how did that library wind up with more
than a single copy of init.o in it? Libraries aren't supposed to
behave that way, unless you use `ar' incorrectly (e.g., "ar q" with a
non-empty library).
- Raw text -