This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][gold] Implement --build-id=uuid on MinGW/MSYS2.
- From: Igor Kudrin <ikudrin at accesssoftek dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>, "\"Cary Coutant\"" <ccoutant at gmail dot com>
- Date: Mon, 17 Oct 2016 14:12:02 +0000
- Subject: Re: [PATCH][gold] Implement --build-id=uuid on MinGW/MSYS2.
- Authentication-results: sourceware.org; auth=none
- References: <1473243648161.89192@accesssoftek.com>
Ping.
________________________________________
From: binutils-owner@sourceware.org <binutils-owner@sourceware.org> on behalf of Igor Kudrin <ikudrin@accesssoftek.com>
Sent: Wednesday, September 7, 2016 4:19 PM
To: binutils@sourceware.org; "Cary Coutant"
Subject: [PATCH][gold] Implement --build-id=uuid on MinGW/MSYS2.
Hi,
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
---
gold/ChangeLog
* layout.cc: Changes for MinGW32:
Include windows.h and rpcdce.h.
(Layout::create_build_id): Use UuidCreate() to generate uuid.