[PATCH] D26199: [ELF] - Implemented --build-id=tree

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 09:45:24 PDT 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777, emaste.

--build-id=tree is a threaded way to computate build id.

If threads are used, --build-id=tree splits input data by chunks.
MD5 hash is calculated for each one and then SHA1 hash is
calculated for result sequence.
If threads are not used, --build-id=tree behaves as a regular sha1.

Idea based on gold patch implementation: https://sourceware.org/ml/binutils/2013-04/msg00134/t.patch


https://reviews.llvm.org/D26199

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/InputSection.cpp
  ELF/InputSection.h
  ELF/Writer.cpp
  test/ELF/build-id.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26199.76582.patch
Type: text/x-patch
Size: 5551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161101/c10db8e3/attachment.bin>


More information about the llvm-commits mailing list