[ELF] Support operator ^ and ^=
authorFangrui Song <i@maskray.me>
Sat, 15 Jul 2023 21:10:40 +0000 (14:10 -0700)
committerFangrui Song <i@maskray.me>
Sat, 15 Jul 2023 21:10:40 +0000 (14:10 -0700)
commitfae96104d4378166cbe5c875ef8ed808a356f3fb
treefc9e2f172d8ff655d019068dbe8519a26c03aa08
parent6043d4dfec1e47b6e314f3643f576ab808f246dc
[ELF] Support operator ^ and ^=

GNU ld added ^ support in July 2023 and it looks like ^= is in plan as
well.

For now, we don't support `a^=0` (^= without a preceding space).
lld/ELF/ScriptLexer.cpp
lld/ELF/ScriptParser.cpp
lld/test/ELF/linkerscript/diag3.test
lld/test/ELF/linkerscript/diag4.test
lld/test/ELF/linkerscript/diag5.test
lld/test/ELF/linkerscript/operators.test