Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2010 09:49:22 +0200
From:      Erik Cederstrand <erik@cederstrand.dk>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: Timestamps in static libraries
Message-ID:  <C21A6232-014B-4178-B5CC-627F95FB6755@cederstrand.dk>
In-Reply-To: <140AD250-ECD1-4BCF-806B-F5901B3BFD87@kientzle.com>
References:  <52C32EA5-A380-4237-A27C-9E2DF2D4E022@cederstrand.dk> <20101005135906.GA3430@owl.midgard.homeip.net> <C5C85BF7-3989-461E-A9C8-9D16AE779359@cederstrand.dk> <140AD250-ECD1-4BCF-806B-F5901B3BFD87@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-1524-954000664
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


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

>=20
> 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.)
>=20
> The current ar code generates this entry and sets the timestamp
> around line 624 of usr.bin/ar/write.c.
>=20
> 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=

--Apple-Mail-1524-954000664--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C21A6232-014B-4178-B5CC-627F95FB6755>