This is an archive of the discontinued LLVM Phabricator instance.

[Linker] Import IFuncs
ClosedPublic

Authored by nextsilicon-itay-bookstein on Aug 12 2021, 11:48 AM.

Details

Summary

When importing symbols from another module, also import GlobalIFuncs.

Author: Itay Bookstein <itay.bookstein@nextsilicon.com>

Diff Detail

Event Timeline

nextsilicon-itay-bookstein requested review of this revision.Aug 12 2021, 11:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2021, 11:48 AM
MaskRay added inline comments.Aug 12 2021, 10:21 PM
llvm/test/Linker/ifunc.ll
2

You can use split-file %s %t to avoid a oneshot temporary file under Inputs/

There are quite a few examples in llvm-project, e.g. in lld/test/ELF

Updated the test per @MaskRay 's suggestion.

MaskRay accepted this revision.Aug 12 2021, 11:13 PM

Thanks!

This revision is now accepted and ready to land.Aug 12 2021, 11:13 PM

I cannot commit the patch myself because I don't have commit access, might I trouble you with that? :)