[PATCH] D59025: Add --add-ghashes to llvm-objcopy to append a .debug$H to coff objects

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 12:40:07 PDT 2019


With recent work focusing on computing ghashes in parallel in the linker,
which would ultimately eliminate the need to write them to the object file
entirely, does this still have the same value?
On Mon, Mar 18, 2019 at 12:32 PM Alexandre Ganea via Phabricator <
reviews at reviews.llvm.org> wrote:

> aganea added a comment.
>
> In D59025#1433050 <https://reviews.llvm.org/D59025#1433050>, @jhenderson
> wrote:
>
> > 2. There's a real-world use-case (which could be as simple as
> significantly simplifying our own testing or whatever).
>
>
> There's a strong industrial use-case here, which is to use MSVC for
> compilation and LLD for linking.
> MSVC currently doesn't support (yet?) `.debug$H` streams, and this patch
> provides a workaround. This inherently makes linking with LLD faster, by
> allowing compilation with MSVC + `.debug$H` computation on remote PCs (when
> using distributed compilation).
> Without this patch, `.debug$H` computation is done locally by LLD, which
> significantly increases link time.
>
> In D59025#1428431 <https://reviews.llvm.org/D59025#1428431>, @rupprecht
> wrote:
>
> > I've never heard of ghashes
>
>
> Worth the read: http://blog.llvm.org/2018/01/
>
>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D59025/new/
>
> https://reviews.llvm.org/D59025
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190318/56de0b01/attachment.html>


More information about the llvm-commits mailing list