This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Puzzle about the _fini function in ia64 Linux


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]