Timestamps in static libraries

Erik Cederstrand erik at cederstrand.dk
Wed Oct 6 07:49:24 UTC 2010


Den 06/10/2010 kl. 08.00 skrev Tim Kientzle:

> 
> That's the timestamp on the pseudo-entry used to store the archive
> symbol table.  (GNU/SysV ar files use a pseudo-entry named "/" to
> store the symbol table.  Since '/' is added to end of names in this
> format, this is essentially an entry with an empty name.)
> 
> The current ar code generates this entry and sets the timestamp
> around line 624 of usr.bin/ar/write.c.
> 
> As far as I can tell, ar itself doesn't care about the timestamp here;
> it's possible that ranlib or ld do care.  If they don't, we could set
> this timestamp to zero always.


Yeah, I had a look at the code too. I was thinking maybe it would help to add a modifier to replace timestamps, uids and gids with '0' when inserting a file, to respect POLA.

Thanks,
Erik


More information about the freebsd-hackers mailing list