Page MenuHomeFreeBSD

elfcopy: use elftc_timestamp, to support SOURCE_DATE_EPOCH
ClosedPublic

Authored by emaste on Aug 24 2016, 2:33 PM.

Details

Summary

Previously PE/COFF files could not be built reproducibly, because they embedded the current time. Now the reproducible builds standard environment variable SOURCE_DATE_EPOCH can be used to override the embedded timestamp.

(Note, this diff is against the upstream elftoolchain repo, and would make it into FreeBSD in a future vendor import.)

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

emaste retitled this revision from to elfcopy: use elftc_timestamp, to support SOURCE_DATE_EPOCH.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
kaiw edited edge metadata.

Patch looks good to me!

This revision is now accepted and ready to land.Aug 30 2016, 9:55 PM