This is an archive of the discontinued LLVM Phabricator instance.

[BPF] Support weak global variables for BTF
ClosedPublic

Authored by yonghong-song on Dec 6 2019, 11:29 PM.

Details

Summary

Generate types for global variables with "weak" attribute.
Keep allocation scope the same for both weak and non-weak
globals as ELF symbol table can determine whether a global
symbol is weak or not.

Diff Detail

Event Timeline

yonghong-song created this revision.Dec 6 2019, 11:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2019, 11:29 PM
ast accepted this revision.Dec 7 2019, 8:42 AM

lgtm

This revision is now accepted and ready to land.Dec 7 2019, 8:42 AM
This revision was automatically updated to reflect the committed changes.