[LLVMbugs] [Bug 195] NEW: Programs that place main() in an archive do not link properly

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Tue Dec 23 09:42:20 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=195

           Summary: Programs that place main() in an archive do not link
                    properly
           Product: tools
           Version: 1.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gccld
        AssignedTo: criswell at uiuc.edu
        ReportedBy: criswell at uiuc.edu


Programs that place their main() function in a library archive (i.e. Apache 2.x)
may not link properly with gccld.  Since main() is unused in other source files,
gccld does not see it as an undefined symbol during linking.  This may cause
gccld to not link in main() if the object in which it resides does not define
any other unused symbols.

The net effect is that you can have a program that is missing its main() function.



------- 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