This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR/15448: add a compiler timestamp to PCH files (take 2)
- From: Paul Brook <paul at codesourcery dot com>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: Mike Stump <mrs at apple dot com>,Daniel Jacobowitz <drow at false dot org>,gcc-patches at gcc dot gnu dot org,Geoff Keating <geoffk at geoffk dot org>
- Date: Thu, 17 Feb 2005 13:31:14 +0000
- Subject: Re: PR/15448: add a compiler timestamp to PCH files (take 2)
- Organization: CodeSourcery
- References: <4210C725.6050503@lu.unisi.ch> <842CA4BB-0533-4767-8AA2-A557821D1A91@apple.com> <42149B94.6080708@lu.unisi.ch>
On Thursday 17 February 2005 13:26, Paolo Bonzini wrote:
> > I think this solves the problem nicely, and fixes the bootstrap
> > problem. The only other issue I can think of, is, it is critical (for
> > the installation of the libstdc++ gch file) that the install process
> > leaves the mtime alone on the compiler binary. touch -r might be
> > necessary to make it work. touch -r isn't very portable.
>
> The PCH would need to be rebuilt upon installation, or the st_size could
> be used alone. The approach of checking addresses are unreliable
> because of PIE.
Is the size reliable? It's quite common for binaries to be stripped during
installation. The only thing I can thing of that should be unmodified is the
*relative* addresses of certain key functions.
Paul