This is an archive of the discontinued LLVM Phabricator instance.

[JITLink][COFF] Don't dead strip seh frame of exported function.
ClosedPublic

Authored by sunho on Jul 16 2022, 2:43 PM.

Details

Summary

Adds keep-alive edges to pdata section to prevent dead strip of block when its parent function is alive.

Diff Detail

Event Timeline

sunho created this revision.Jul 16 2022, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2022, 2:43 PM
sunho requested review of this revision.Jul 16 2022, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2022, 2:43 PM

LGTM!

Is the SEH section already being broken up into blocks? Where is that happening?

lhames accepted this revision.Jul 25 2022, 3:25 PM
This revision is now accepted and ready to land.Jul 25 2022, 3:25 PM
sunho added a comment.Jul 25 2022, 8:28 PM

LGTM!

Is the SEH section already being broken up into blocks? Where is that happening?

I believe it is already broken up and I actually think windows API just allow to register everything in a bulk. I haven't really hit a case where things get broken because the entry was not broken up.

This revision was landed with ongoing or failed builds.Jul 25 2022, 9:04 PM
This revision was automatically updated to reflect the committed changes.