[lld] [LLD] [ELF] Add support for linker script unary plus operator (PR #121508)

Parth Arora via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 00:47:04 PST 2025


================
@@ -73,6 +73,7 @@ SECTIONS {
   log2ceil100000000 = LOG2CEIL(0x100000000);
   log2ceil100000001 = LOG2CEIL(0x100000001);
   log2ceilmax = LOG2CEIL(0xffffffffffffffff);
+  unaryadd = +3 + ++5;
 }
----------------
partaror wrote:

Done. I have added another symbol that uses both `+-` and `-+`.

https://github.com/llvm/llvm-project/pull/121508


More information about the llvm-commits mailing list