This is an archive of the discontinued LLVM Phabricator instance.

[BitCode] Add noprofile to getAttrFromCode()
ClosedPublic

Authored by nathanchance on Jun 27 2021, 10:55 AM.

Details

Summary

After D104475 / D104658, building the Linux kernel with ThinLTO is
broken:

ld.lld: error: Unknown attribute kind (73) (Producer: 'LLVM13.0.0git'
Reader: 'LLVM 13.0.0git')

getAttrFromCode() has never handled this attribute so it is written
during the ThinLTO but it cannot be handled during the linking phase.

Add noprofile to getAttrFromCode() so that disassembly works properly.

Diff Detail

Event Timeline

nathanchance created this revision.Jun 27 2021, 10:55 AM
nathanchance requested review of this revision.Jun 27 2021, 10:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2021, 10:55 AM
MaskRay accepted this revision.Jun 27 2021, 11:03 AM

Thanks!

This revision is now accepted and ready to land.Jun 27 2021, 11:03 AM
This revision was automatically updated to reflect the committed changes.