[ELF] - Implemented threaded --build-id computation
authorGeorge Rimar <grimar@accesssoftek.com>
Sun, 6 Nov 2016 07:42:55 +0000 (07:42 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Sun, 6 Nov 2016 07:42:55 +0000 (07:42 +0000)
commit364b59e2661735c8901288a759ace1f712d9b012
tree33353f8cf9edc25ab6392991d4c2a09cb58337c2
parent398f90f024005418b6b7e26266dab229b408e2f6
[ELF] - Implemented threaded --build-id computation

Patch switches computing of --build-id hash to tree.

This is the way when input data is splitted by chunks,
hash is computed for each one in threaded/non-threaded way.
At the end hash is conputed for result tree.

With or without -threads the result hash is the same.

Differential revision: https://reviews.llvm.org/D26199

llvm-svn: 286061
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h
lld/test/ELF/build-id.s