[PATCH v2][gold] Implement --build-id=uuid on MinGW/MSYS2.
Igor Kudrin
ikudrin@accesssoftek.com
Fri Oct 21 05:59:00 GMT 2016
Hi Cary,
Thank you for the comments. In this version, I've replaced C-style cast
to reinterpret_cast. Hope it's OK now.
Best regards,
Igor Kudrin
---
gold/ChangeLog
* layout.cc: Changes for MinGW32:
Include windows.h and rpcdce.h.
(Layout::create_build_id): Generate uuid using UuidCreate().
________________________________________
From: Cary Coutant <ccoutant@gmail.com>
Sent: Friday, October 21, 2016 2:19 AM
To: Igor Kudrin
Cc: binutils@sourceware.org
Subject: Re: [PATCH][gold] Implement --build-id=uuid on MinGW/MSYS2.
> gold/ChangeLog
>
> * layout.cc: Changes for MinGW32:
> Include windows.h and rpcdce.h.
> (Layout::create_build_id): Use UuidCreate() to generate uuid.
+ UuidCreateFn uuid_create =
+ (UuidCreateFn)GetProcAddress(rpc_library, "UuidCreate");
Please use a C++ style case here. With that change, the patch looks good.
-cary
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gold-build-id-uuid.2.patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20161021/4b9e499d/attachment.txt>
More information about the Binutils
mailing list