This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][ld] Implement --build-id=uuid on MinGW/MSYS2.


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().

Attachment: ld-build-id-uuid.patch.txt
Description: ld-build-id-uuid.patch.txt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]