ELF: Implement --build-id=md5.
authorRui Ueyama <ruiu@google.com>
Thu, 7 Apr 2016 22:49:21 +0000 (22:49 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 7 Apr 2016 22:49:21 +0000 (22:49 +0000)
commit3a41be277a761d7687a2b860fa045ef5227d6e2d
treefea09726e818fcd3d62a4dccae500f7920d4fb8c
parente918006a87012fbd6840108b08313bb55a11403a
ELF: Implement --build-id=md5.

Previously, we supported only one hash function, FNV-1, so
BuildIdSection directly handled hash computation. In this patch,
I made BuildIdSection an abstract class and defined two subclasses,
BuildIdFnv1 and BuildIdMd5.

llvm-svn: 265737
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Writer.cpp
lld/test/ELF/build-id.s