Fix createdump failures on alpine in diagnostics repo tests (#32579)
authorMike McLaughlin <mikem@microsoft.com>
Fri, 21 Feb 2020 00:28:14 +0000 (16:28 -0800)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 00:28:14 +0000 (16:28 -0800)
commitac941749537fc60c6ceb193462dfe145111a1ef7
tree0b6c663126dcedd60610f14ad1de54eed8825552
parent1c498fe9ae4729f57c66151fc1f6402896d79c53
Fix createdump failures on alpine in diagnostics repo tests (#32579)

Add "loadbias" to dynamic entries RVAs on Alpine Linux.

Move the Windows includes files and other defines from elfreader.h to elfreader.cpp.

Make the two ways the ElfReader is used more clear by renaming and cleanup some
function names:
    1) PopulateForSymbolLookup (was PopulateElfInfo) for looking up symbols and caches
       symbol/string table state in the ElfReader class.
    2) EnumerateElfInfo (was PopulateElfInfo also) which is used by createdump to enumerate
       all the native modules and their program headers and doesn't depend on or caches any state.
src/coreclr/src/debug/createdump/crashinfo.cpp
src/coreclr/src/debug/dbgutil/CMakeLists.txt
src/coreclr/src/debug/dbgutil/elfreader.cpp
src/coreclr/src/debug/dbgutil/elfreader.h