Skip to content

Commit acd0433

Browse files
thaystggithub-actions
authored andcommitted
Fix elfreader for android.
1 parent 1dc2902 commit acd0433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/debug/dbgutil/elfreader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ ElfReader::PopulateForSymbolLookup(uint64_t baseAddress)
127127
// Enumerate program headers searching for the PT_DYNAMIC header, etc.
128128
if (!EnumerateProgramHeaders(
129129
baseAddress,
130-
#if defined(TARGET_LINUX_MUSL) || defined(TARGET_RISCV64)
130+
#if defined(TARGET_LINUX_MUSL) || defined(TARGET_RISCV64) || defined(HOST_ANDROID)
131131
// On musl based platforms (Alpine) and RISCV64 (VisionFive2 board),
132132
// the below dynamic entries for hash,
133133
// string table, etc. are RVAs instead of absolute address like on all

0 commit comments

Comments
 (0)