This is an archive of the discontinued LLVM Phabricator instance.

[XCOFF][AIX] Put each jump table in an independent section if -ffunction-sections is specified
ClosedPublic

Authored by jasonliu on Jul 28 2020, 8:32 AM.

Details

Summary

If a function is in a unique section, putting all jump tables in .rodata will prevent functions that have a jump table to get garbage collect by the linker.
Therefore, we need to put jump table into a unique section as well.

Diff Detail

Event Timeline

jasonliu created this revision.Jul 28 2020, 8:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2020, 8:32 AM
jasonliu requested review of this revision.Jul 28 2020, 8:32 AM

Gentle ping.

Xiangling_L accepted this revision.Aug 5 2020, 7:06 AM

LGTM. thanks

This revision is now accepted and ready to land.Aug 5 2020, 7:06 AM