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

Leonardo Santagada via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 09:55:46 PST 2019


I don't have a script, as only llvm knows how to compute those.

On Wed, 6 Mar 2019 at 18:54, Jordan Rupprecht via Phabricator <
reviews at reviews.llvm.org> wrote:

> rupprecht added a comment.
>
> In D59025#1420039 <https://reviews.llvm.org/D59025#1420039>, @santagada
> wrote:
>
> > In D59025#1420024 <https://reviews.llvm.org/D59025#1420024>, @rupprecht
> wrote:
> >
> > > General question: why not just use llvm-objcopy --add-section to do
> this?
> >
> >
> > How? I need to compute the ghashes, how would I just add a section to it?
>
>
> --add-section adds a given file as a section name, e.g. assuming you have
> a separate script to compute hashes:
> ./compute_ghashes input.o > ghash.txt
> llvm-objcopy input.o --add-section .debug$H=ghash.txt
>
>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D59025/new/
>
> https://reviews.llvm.org/D59025
>
>
>
> --

Leonardo Santagada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190306/ebfdb906/attachment-0001.html>


More information about the llvm-commits mailing list