This is an archive of the discontinued LLVM Phabricator instance.

[Internalize] Preserve __stack_chk_fail in Internalizer correctly
ClosedPublic

Authored by ychen on Oct 27 2021, 6:42 PM.

Details

Summary

Move the section collecting AlwaysPreserved up before any
maybeInternalize is called. Otherwise, functions in AlwaysPreserved (in this case, __stack_chk_fail)
are not preserved.

Diff Detail

Event Timeline

ychen created this revision.Oct 27 2021, 6:42 PM
ychen requested review of this revision.Oct 27 2021, 6:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 6:42 PM
ychen edited the summary of this revision. (Show Details)Oct 27 2021, 6:56 PM
This revision is now accepted and ready to land.Oct 27 2021, 8:23 PM
ychen retitled this revision from [Internalize] Preserve __stack_chk_fail in Interalizer correctly to [Internalize] Preserve __stack_chk_fail in Internalizer correctly.Oct 27 2021, 8:25 PM
MaskRay accepted this revision.Oct 27 2021, 9:15 PM

Thanks!

This revision was landed with ongoing or failed builds.Oct 28 2021, 11:23 AM
This revision was automatically updated to reflect the committed changes.