This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Puzzle about the _fini function in ia64 Linux
- From: Andreas Schwab <schwab at suse dot de>
- To: Gewj <geweijin at sinosoft dot com dot cn>
- Cc: "binutils at sources dot redhat dot com" <binutils at sources dot redhat dot com>
- Date: Thu, 16 Sep 2004 18:01:57 +0200
- Subject: Re: Puzzle about the _fini function in ia64 Linux
- References: <4149A217.2050305@sinosoft.com.cn>
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."