Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Problems on Alpha with linking
@ 1999-03-10 20:55 max
  0 siblings, 0 replies; only message in thread
From: max @ 1999-03-10 20:55 UTC (permalink / raw)
  To: axp-list

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
         .-|      
_________._|____________________________________________________





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-10 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-10 20:55 Problems on Alpha with linking max

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox