return false;
}
break;
-#if !defined(__LP64__)
case DT_PLTREL:
+#if defined(USE_RELA)
+ if (d->d_un.d_val != DT_RELA) {
+ DL_ERR("unsupported DT_PLTREL in \"%s\"; expected DT_RELA", name);
+ return false;
+ }
+#else
if (d->d_un.d_val != DT_REL) {
- DL_ERR("unsupported DT_RELA in \"%s\"", name);
+ DL_ERR("unsupported DT_PLTREL in \"%s\"; expected DT_REL", name);
return false;
}
- break;
#endif
+ break;
case DT_JMPREL:
#if defined(USE_RELA)
plt_rela = reinterpret_cast<ElfW(Rela)*>(load_bias + d->d_un.d_ptr);
mips_gotsym = d->d_un.d_val;
break;
#endif
+ case DT_VERSYM:
+ case DT_VERDEF:
+ case DT_VERDEFNUM:
+ // Ignore: bionic does not support symbol versioning...
+ break;
default:
if (!relocating_linker) {