| Issue |
74238
|
| Summary |
Windows `build-id` is non-deterministic
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
vszakats
|
Tried to enable the CET hardening option with
`clang -fuse-ld=lld -Xlinker -Xlink=-cetcompat -Wl,-s test.c`
for Windows (I used llvm-mingw 20231128 with LLVM 17.0.6). This
automatically enabled a `build-id` segment (normally suppressed by `-Wl,-s`),
which is in turn different for each, otherwise bit-by-bit identical, build. It
suggests that the `build-id` is a random value, not a deterministic hash of
the output like it is for example on Linux.
Is there a way to enable both this hardening feature _and_ making
reproducible builds on Windows? If not, would it be possible to make
`build-id` deterministic, or disable it with CET?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs