This is an archive of the discontinued LLVM Phabricator instance.

On FreeBSD, skip the first entry in the dl_iterate_phdr list.
ClosedPublic

Authored by dim on Oct 24 2017, 12:29 PM.

Details

Summary

Similar to NetBSD, in FreeBSD, the first returned entry when callbacks
are done via dl_iterate_phdr will return the main program. Ignore that
entry when checking that the dynamic ASan lib is loaded first.

Event Timeline

dim created this revision.Oct 24 2017, 12:29 PM
eugenis accepted this revision.Oct 24 2017, 12:35 PM
This revision is now accepted and ready to land.Oct 24 2017, 12:35 PM
krytarowski accepted this revision.Oct 24 2017, 12:40 PM
dim closed this revision.Oct 24 2017, 12:46 PM