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

Igor Kudrin ikudrin@accesssoftek.com
Wed Sep 7 10:20:00 GMT 2016


This patch adds support for the --build-id=uuid option on Windows
when gold is built in MSYS2 (MinGW) environment. This is similar
to the patch already applied to ld, see https://sourceware.org/ml/binutils/2016-07/msg00331.html

Without the patch, using this option leads to the following error:
gold.exe: error: --build-id=uuid failed: could not open /dev/urandom: No such file or directory

Best regards,
Igor Kudrin


	* layout.cc: Changes for MinGW32:
	Include windows.h and rpcdce.h.
	(Layout::create_build_id): Use UuidCreate() to generate uuid.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gold-build-id-uuid.patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20160907/3abb8a35/attachment.txt>

More information about the Binutils mailing list