Resolve "unused DT entry" warnings for x86_64
Change-Id: I3a2c87bf6e6259313cd9203389623f13b7405ef3
This commit is contained in:
parent
6d569b9201
commit
513e29e16f
@ -1936,14 +1936,19 @@ bool soinfo::PrelinkImage() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#if !defined(__LP64__)
|
|
||||||
case DT_PLTREL:
|
case DT_PLTREL:
|
||||||
if (d->d_un.d_val != DT_REL) {
|
#if defined(USE_RELA)
|
||||||
DL_ERR("unsupported DT_RELA in \"%s\"", name);
|
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_PLTREL in \"%s\"; expected DT_REL", name);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
case DT_JMPREL:
|
case DT_JMPREL:
|
||||||
#if defined(USE_RELA)
|
#if defined(USE_RELA)
|
||||||
plt_rela = reinterpret_cast<ElfW(Rela)*>(load_bias + d->d_un.d_ptr);
|
plt_rela = reinterpret_cast<ElfW(Rela)*>(load_bias + d->d_un.d_ptr);
|
||||||
@ -2120,6 +2125,11 @@ bool soinfo::PrelinkImage() {
|
|||||||
mips_gotsym = d->d_un.d_val;
|
mips_gotsym = d->d_un.d_val;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
case DT_VERSYM:
|
||||||
|
case DT_VERDEF:
|
||||||
|
case DT_VERDEFNUM:
|
||||||
|
// Ignore: bionic does not support symbol versioning...
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (!relocating_linker) {
|
if (!relocating_linker) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user