[llvm-bugs] [Bug 34948] New: -defsym should accept expressions, not just symbols

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 13 22:50:27 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34948

            Bug ID: 34948
           Summary: -defsym should accept expressions, not just symbols
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: roland at hack.frob.com
                CC: llvm-bugs at lists.llvm.org, phosek at chromium.org

The -defsym SYM=VAL option in other linkers accepts an absolute address         
constant (e.g. 0 or 0x1234) or even an expression like 1+2 or symbol+3for       
VAL, not just a symbol name.  In gold and BFD, it takes basically any           
expression you can use in freestanding linker script contexts like              
PROVIDE(SYM = VAL).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171014/900eefa8/attachment.html>


More information about the llvm-bugs mailing list