https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66305

Daniel Kahn Gillmor <dkg at fifthhorseman dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkg at fifthhorseman dot net

--- Comment #5 from Daniel Kahn Gillmor <dkg at fifthhorseman dot net> ---
(In reply to lunar from comment #3)

> Would using a hash over the section content work? In any cases, in the context
> of Debian (this applies for FreeBSD as well), we have a canonical build path
> so it would probably be fine to use it as the source of the hash.

Please don't embed the full canonical build path into the solution for this. 
It seems possible to vary the build path successfully and produce the same
output (see bug 68848 for a minor fix needed for debugging symbols), so it
would be a shame to re-embed it here.

> I guess one could already do this without further help by giving the
> build path to `-frandom-seed=`. This only would need some Makefile trickery.

using a cryptographic digest of the file contents would require roughly the
same Makefile trickery without forcing a canonicalized build path.

Reply via email to