Puzzle about the _fini function in ia64 Linux

Andreas Schwab schwab@suse.de
Thu Sep 16 16:02:00 GMT 2004


Gewj <geweijin@sinosoft.com.cn> writes:

> I'm working on a ia64 linux,(kernel 2.4.18,gcc3-3.0.4-1)system.
> I redefine the _fini function in a dll library with the -nostartfiles in
> its Makefile.

Don't do that.  If you need a finalizer use __attribute__((destructor)).

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list