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

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 09:54:05 PST 2019


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





More information about the llvm-commits mailing list