From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5989 invoked from network); 10 Mar 1999 21:02:47 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 10 Mar 1999 21:02:47 -0000 Received: from takefive.takefive.co.at (takefive.takefive.co.at [193.81.18.150]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA11448 for ; Wed, 10 Mar 1999 15:55:49 -0500 From: max@takefive.co.at Received: from takefive.co.at (max@extreme [193.81.18.174]) by takefive.takefive.co.at (8.8.8/1.0T5H) with ESMTP id VAA10734 for ; Wed, 10 Mar 1999 21:55:43 +0100 (MET) Message-Id: <199903102055.VAA10734@takefive.co.at> Date: Wed, 10 Mar 1999 21:55:59 +0100 (CET) Subject: Problems on Alpha with linking To: axp-list@redhat.com MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Hi, I have a very specific problem when linking a executeable on Alpha/Linux I try to describe it as easy as possible :-) My environment (all packages from ftp.alphalinux.org) RedHat 5.2 binutils-2.9.1.0.19a-2 egcs-1.1.1 I am working on a large C++ software project. In our code we are overwriting the C++ "operator new" This operator is in a object file which goes into a library libFoundation.a. With this library an executeable prnew is produced When applying "nm libFoundation.a" the result is 0000000000000000 T __builtin_new Which is fine. But after linking the executeable a "nm prnew" gives 0000000120290e94 ? __builtin_new Which means that our operator new will be never called (the ? means it is an unknown symbol) :-( The linker somehow is "loosing" the symbol. Wenn linking the object file containing the operator new directly to the executeable it works. "nm prnew" gives 000000012000af00 T __builtin_new The same works on an i386/Linux with a nearly equal environment egcs-1.1.1 binutils 2.9.0.1-15 I have already tried tu use the original 5.2 environment egcs-1.0.3 binutils-2.9.0.1-15 Without any difference Any Ideas ? Regards Max _______________________________________________________________ \ o/\_ DI Max Weninger <\__,\ Email (max@takefive.co.at) ">. | ` .-| TakeFive Software - Jakob-Haringer-Str. 8 . \ A-5020 Salzburg - AUSTRIA . \ Tel: +43 662 4579150 - Fax: +43 662 4579156 .-| _________._|____________________________________________________