[LLVMbugs] [Bug 142] NEW: crtend runtime library should be built as an archive

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Thu Nov 20 08:20:02 PST 2003


           Summary: crtend runtime library should be built as an archive
           Product: Runtime Libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: crtend library
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org

crtend.o currently contains three distinct pieces of functionality:

1. __main implementation
2. sjlj exception handling support
3. C++ exception handling support

#3 depends on libstdc++, so we don't want to link it into C programs.  We are
currently hacking around this problem now by having the globaldce pass delete
all of the C++ support if there are no references to it, but this is really a
hack: the code should never be linked into C applications to begin with.  Also,
this breaks gccld -disable-opt for C programs as well.  :(

The fix for this is to build crtend as an archive file containing three .o's for
each of the above components.


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list