I've prepared a testcase containing the .a and .o files. Unfortunately, it's 25MB and too large for email. Please retrieve it from http://wagon.no-ip.org/binutils-reg.tar.bz2 . The command that runs ld is:
$ /usr/bin/ld --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o /home/nicholas/llvm/Debug/bin/opt /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.1.2/crtbegin.o -L/home/nicholas/llvm/Debug/lib -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -L/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib /home/nicholas/llvm/tools/opt/Debug/opt.o /home/nicholas/llvm/Debug/lib/LLVMDataStructure.o --export-dynamic -lLLVMBCReader -lLLVMBCWriter -lLLVMInstrumentation -lLLVMScalarOpts -lLLVMipo -lLLVMipa -lLLVMTransforms -lLLVMTarget -lLLVMTransformUtils -lLLVMAnalysis -lLLVMCore -lLLVMSupport -lLLVMbzip2 -lLLVMSystem -lpthread /usr/lib/libltdl.so -ldl -lelf --rpath /home/nicholas/llvm/Debug/bin -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/i486-linux-gnu/4.1.2/crtend.o /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o You'll want g++-4.1 installed. If I go back to binutils 2.16.1cvs20060413-1 (testing), it runs in 15 seconds while with binutils 2.17-1 it takes 5m32s. Nick Lewycky -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]