Research on Google indicates that this problem has occurred before. When building llvm-2.3
http://www.llvm.org/releases/ with the patch from OpenGTL: http://www.opengtl.org/Download.html Using GCC-4.3.2 and BinUtils-2.19, linking fails with error: make[2]: Entering directory `/usr/src/llvm-2.3/tools/llc' llvm[2]: Linking Release executable llc (without symbols) `.L1297' referenced in section `.gnu.linkonce.r._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o): defined in discarded section `.gnu.linkonce.t._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o) `.L1298' referenced in section `.gnu.linkonce.r._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o): defined in discarded section `.gnu.linkonce.t._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o) `.L1298' referenced in section `.gnu.linkonce.r._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o): defined in discarded section `.gnu.linkonce.t._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o) `.L1299' referenced in section `.gnu.linkonce.r._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o): defined in discarded section `.gnu.linkonce.t._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/llvm-2.3/Release/lib/libLLVMSelectionDAG.a(TargetLowering.o) and a lot more of similar errors. -- Summary: Regression: linking fails on objects in discarded section of *.o files Product: binutils Version: 2.19 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: tyrerj at acm dot org CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=6996 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils