This is an archive of the discontinued LLVM Phabricator instance.

ELF: Teach the linker about the 'B' augmentation string character.
ClosedPublic

Authored by pcc on Dec 30 2020, 11:10 PM.

Details

Summary

This character indicates that when return pointer authentication is
being used, the function signs the return address using the B key.

Diff Detail

Event Timeline

pcc created this revision.Dec 30 2020, 11:10 PM
pcc requested review of this revision.Dec 30 2020, 11:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 30 2020, 11:10 PM
MaskRay added inline comments.Dec 31 2020, 12:47 AM
lld/test/ELF/cfi-b-key-frame.s
1 ↗(On Diff #314172)

Such tests are named eh-frame-*

pcc updated this revision to Diff 314759.Jan 5 2021, 5:25 PM
  • Rename test
MaskRay accepted this revision.Jan 5 2021, 5:51 PM
MaskRay added inline comments.
lld/ELF/EhFrame.cpp
197

Because 'R' triggers an early return, so we don't error for "zRB"... --icf= triggers hasLSDA

This revision is now accepted and ready to land.Jan 5 2021, 5:51 PM