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

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Sat Nov 29 02:40:35 PST 2003


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

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From sabre at nondot.org  2003-11-29 04:40 -------
Fixed.  With these changes, LLVM-tblgen __STARTS TO WORK__.  Building the X86
backend, it builds all of:
X86GenInstrInfo.inc   X86GenRegisterInfo.h.inc  X86GenRegisterNames.inc
X86GenInstrNames.inc  X86GenRegisterInfo.inc

... with the LLVM compiled tablegen, finally crashing when trying to generate
the instruction selector.  It also crashes when trying to create the sparc
instruction emitter.  Still, this is _HUGE_ progress: tblgen uses a lot of
non-trivial C++ stuff, including the command line option parser, hunks of the
STL, etc.

Here are the main LLVM patches:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031124/009910.html
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031124/009913.html

Here's the GCC front-end patch, to link to -lcrtend instead of crtend.o

$ diff -u gcc.c~ gcc.c
--- gcc.c~      2003-11-29 04:16:24.000000000 -0600
+++ gcc.c       2003-11-29 04:25:54.000000000 -0600
@@ -646,7 +646,7 @@
 /* config.h can define ENDFILE_SPEC to override the default crtn files.  */
 #if EMIT_LLVM
 #undef ENDFILE_SPEC
-#define ENDFILE_SPEC "%{!shared:crtend.o}"
+#define ENDFILE_SPEC "%{!shared:-lcrtend}"
 #else
 #ifndef ENDFILE_SPEC
 #define ENDFILE_SPEC ""




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