This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running ranlib after installation - okay or not? (Kai Henningsen) writes:

> (Andrew Pinski)  wrote on 31.08.05 in <>:
> > If you consider Darwin "modern", then that statement is not correct
> > as moving/copying an archive on darwin, requires ranlib to be run.
> Is there a point to this behaviour? It sounds as if someone confused an  
> archive with a nethack scorefile ...

a.out archives used to work this way too, e.g. on SunOS 4.  The idea
was that people would often use ar without updating the symbol table.
Thus the symbol table has a timestamp.  The linker checks that the
timestamp of the symbol table is not older than the file modification
time of the archive.

In practice this turned out to be a mistake, as everybody always
updated the symbol table with every use of ar, and it caused trouble
when simply copying archives around.  So the notion was abandoned in
the move to COFF and ELF.

>From my perspective Darwin lives in its own little world, and I guess
they never abandoned the symbol table timestamp checking.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]