Commit | Line | Data |
---|---|---|
79825bee CD |
1 | This following patch was originally found at the debian mingw-w64 team's |
2 | binutils repo located here: | |
3 | https://salsa.debian.org/mingw-w64-team/binutils-mingw-w64.git | |
4 | ||
5 | Invoke the following in the aforementioned repo to see the original patch: | |
6 | ||
7 | $ git show da63f6b:debian/patches/reproducible-import-libraries.patch | |
8 | ||
9 | Description: Make DLL import libraries reproducible | |
10 | Author: Benjamin Moody <benjamin.moody@gmail.com> | |
11 | Bug-Debian: https://bugs.debian.org/915055 | |
12 | ||
13 | --- a/ld/pe-dll.c | |
14 | +++ b/ld/pe-dll.c | |
15 | @@ -2844,6 +2844,7 @@ | |
16 | ||
17 | bfd_set_format (outarch, bfd_archive); | |
18 | outarch->has_armap = 1; | |
19 | + outarch->flags |= BFD_DETERMINISTIC_OUTPUT; | |
20 | ||
21 | /* Work out a reasonable size of things to put onto one line. */ | |
22 | ar_head = make_head (outarch); |