Skip to content

Commit ed38b57

Browse files
committed
Revert "Remove cause of crash on Android"
This reverts commit 8248322.
1 parent 8248322 commit ed38b57

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

stdlib/public/runtime/ImageInspectionELF.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,8 @@ static SectionInfo getSectionInfo(const char *imageName,
6868
SectionInfo sectionInfo = { 0, nullptr };
6969
void *handle = dlopen(imageName, RTLD_LAZY | RTLD_NOLOAD);
7070
if (!handle) {
71-
#ifdef __ANDROID__
72-
return sectionInfo;
73-
#else
7471
fatalError(/* flags = */ 0, "dlopen() failed on `%s': %s", imageName,
7572
dlerror());
76-
#endif
7773
}
7874
void *symbol = dlsym(handle, sectionName);
7975
if (symbol) {

0 commit comments

Comments
 (0)