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;
Paths
| Differential D24860
[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: __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; __fixup_entries = (. - _FIXUP_TABLE_)>>2;
Diff Detail
Event Timelinegrimar updated this object. Closed by commit rL282243: [ELF] - Linkerscript: Implemented >> and << (authored by grimar). · Explain WhySep 23 2016, 6:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 72263 lld/trunk/ELF/LinkerScript.cpp
lld/trunk/test/ELF/linkerscript/locationcounter.s
|
StringSwitch now has Cases function in addition to the existing Case for multiple choice cases. You can use it.