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

            Bug ID: 44698
           Summary: Global initialization incompatibility with old objects
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 23069
  --> https://bugs.llvm.org/attachment.cgi?id=23069&action=edit
tarball containing material to reproduce

Linking running the attached project with lld produces a crashing object
whereas using ld yields a working one.

My suspicion is that lld does not pick up the global initialization function
which lacks the _sub_ infix.
0000000000000288 t _GLOBAL__I_outFilePtr // from old g++, crashes with lld
vs.
00000000000001af t _GLOBAL__sub_I_outFilePtr // from new g++, works with lld

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to