This is an archive of the discontinued LLVM Phabricator instance.

Restrict the scope of a hack in DYLDRendezvous
ClosedPublic

Authored by tberghammer on Sep 30 2015, 6:33 AM.

Details

Summary

Restrict the scope of a hack in DYLDRendezvous

The hack is there to work around an incorrect load address reported
by the android linker on API 21 and 22 devices. This CL restricts the
hack to those android API levels.

Diff Detail

Repository
rL LLVM

Event Timeline

tberghammer retitled this revision from to Restrict the scope of a hack in DYLDRendezvous.
tberghammer updated this object.
tberghammer added a reviewer: labath.
tberghammer added a subscriber: lldb-commits.
labath accepted this revision.Sep 30 2015, 6:46 AM
labath edited edge metadata.

looks good

source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
421 ↗(On Diff #36097)

This is condition is getting quite complicated. Consider putting it in a function (bool isBaseAddressBuggy(string file) perhaps?).

This revision is now accepted and ready to land.Sep 30 2015, 6:46 AM
This revision was automatically updated to reflect the committed changes.