This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Linkerscript: Implemented >> and <<
ClosedPublic

Authored by grimar on Sep 23 2016, 5:45 AM.

Details

Summary

Found this operators used in the wild here:
https://searchcode.com/file/103745382/board/bf561-ezkit/u-boot.lds.S

__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
__fixup_entries = (. - _FIXUP_TABLE_)>>2;

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 72261.Sep 23 2016, 5:45 AM
grimar retitled this revision from to [ELF] - Linkerscript: Implemented >> and <<.
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
This revision was automatically updated to reflect the committed changes.
ruiu added inline comments.Sep 23 2016, 11:16 AM
lld/trunk/ELF/LinkerScript.cpp
1084–1085

StringSwitch now has Cases function in addition to the existing Case for multiple choice cases. You can use it.