Bug 727959 - Ignore 0xffffffff entries the x86 Android NDK puts in .{init,fini}_array. r=tglek

This commit is contained in:
Mike Hommey 2012-03-14 10:53:21 +01:00
parent e84767d238
commit 9acf72ba12

View File

@ -705,7 +705,8 @@ CustomElf::CallInit()
for (Array<void *>::iterator it = init_array.begin();
it < init_array.end(); ++it) {
if (*it)
/* Android x86 NDK wrongly puts 0xffffffff in INIT_ARRAY */
if (*it && *it != reinterpret_cast<void *>(-1))
CallFunction(*it);
}
initialized = true;
@ -719,7 +720,8 @@ CustomElf::CallFini()
return;
for (Array<void *>::iterator it = fini_array.begin();
it < fini_array.end(); ++it) {
if (*it)
/* Android x86 NDK wrongly puts 0xffffffff in FINI_ARRAY */
if (*it && *it != reinterpret_cast<void *>(-1))
CallFunction(*it);
}
if (fini)