Bug 733087 - Support DT_FLAGS a little bit. r=glandium

This commit is contained in:
Jeff Muizelaar 2012-03-06 09:28:09 +01:00
Родитель c30de3580b
Коммит 7cbebe89b8
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -547,6 +547,16 @@ CustomElf::InitDyn(const Phdr *pt_dyn)
return false;
}
break;
case DT_FLAGS:
{
Word flags = dyn->d_un.d_val;
/* we can treat this like having a DT_SYMBOLIC tag */
flags &= ~DF_SYMBOLIC;
if (flags)
log("%s: Warning: unhandled flags #%" PRIxAddr" not handled",
GetPath(), flags);
}
break;
case DT_SONAME: /* Should match GetName(), but doesn't matter */
case DT_SYMBOLIC: /* Indicates internal symbols should be looked up in
* the library itself first instead of the executable,