[llvm-bugs] [Bug 33888] New: --symbol-ordering-file doesn't work with lto

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 21 18:35:01 PDT 2017


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

            Bug ID: 33888
           Summary: --symbol-ordering-file doesn't work with lto
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org

The reason being that lto creates a single section:

% readelf -sW test.so.lto.o

Symbol table '.symtab' contains 5 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
     1: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ld-temp.o
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    2
     3: 0000000000000001     1 FUNC    GLOBAL DEFAULT    2 bar
     4: 0000000000000000     1 FUNC    GLOBAL DEFAULT    2 foo


so lld cannot reorder foo and bar.

-- 
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/20170722/8419f59c/attachment.html>


More information about the llvm-bugs mailing list