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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 21:14:21 PST 2025


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

perhaps also add ` -+5` while here...

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


More information about the llvm-commits mailing list