[PATCH][ld] Implement --build-id=uuid on MinGW/MSYS2.
Igor Kudrin
ikudrin@accesssoftek.com
Mon Jul 25 10:16:00 GMT 2016
Hi,
This patch adds support for the --build-id=uuid option on Windows
when ld is build in MSYS2 (MinGW) environment. It uses function
UuidCreate() from rpcrt4.dll instead of reading from /dev/urandom,
because the latter is not random enough in that case.
BTW, without the patch, using this option leads to AV.
Best regards,
Igor Kudrin
---
ld/ChangeLog
* ldbuildid.c [__MINGW32__]: Include windows.h and rpcdce.h.
(validate_build_id_style) [__MINGW32__]: Allow "uuid" style.
(generate_build_id) [__MINGW32__]: Fill id_bits using UuidCreate().
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ld-build-id-uuid.patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20160725/d6bb3c99/attachment.txt>
More information about the Binutils
mailing list