Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produce the *_gnu import libraries more deterministically #1967

Merged
merged 2 commits into from Aug 22, 2022

Commits on Aug 17, 2022

  1. Avoid timestamps in the *_gnu import libraries

    Dlltool unfortunately doesn't default to a deterministic output like
    e.g. ar, and doesn't have a flag to enable it. Ar's MRI mode also
    doesn't rewrite timestamps from the libraries it merges so the best
    we can do as a workaround is to use objcopy, which does rewrite
    timestamps, but touches nothing else.
    
    Ironically, running objcopy for each intermedia library adds less
    overhead than once at the end.
    glandium committed Aug 17, 2022
    Copy the full SHA
    c63b15d View commit details
    Browse the repository at this point in the history
  2. Ensure stable file prefixes in the *_gnu import libraries

    For some reason, the import libraries currently in the repository don't
    match what running the tool_gnu command produces, due to the use of
    different prefixes. This adjusts the command to produce the same
    prefixes as the ones currently in the import libraries from the
    repository.
    glandium committed Aug 17, 2022
    Copy the full SHA
    fc2b4bf View commit details
    Browse the repository at this point in the history