[PATCH] D25467: [ELF] - Alternative fix to prevent possible crash on large output.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 07:51:27 PDT 2016


>On 18 October 2016 at 11:51, George Rimar via llvm-commits
><llvm-commits at lists.llvm.org> wrote:
>>
>> As far I know MD5 and SHA1 can not be parrallized. You sure can split
>> original buffer and compute multiple hashes in parrallel and combine them
>> somehow at the end, but result  of hash(buf1) + hash(buf2) + .... +
>> hashN(bufN) will never be equal to hash(whole bufer). Do you have some
>> specific solution in mind here ?
>
>The build-ID can be calculated as a combination of hashes of
>individual chunks, and I believe gold already supports this. The
>build-ID has to be deterministic and reproducible for a given linker,
>but it's not a problem if a different linker or different version of
>the linker produces a different build-ID.

That makes sence, thanks Ed !

George.


More information about the llvm-commits mailing list