This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: another .fini vs. .fini_array problem


>>>>> On Tue, 25 Nov 2003 23:15:22 -0800, Ulrich Drepper <drepper@redhat.com> said:

  Uli> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

  Uli> David Mosberger wrote:

  >> 2003-11-21 David Mosberger <davidm@hpl.hp.com>

  >> * elf/soinit.c (_fini): Put _fini() in .init_array section if
  >> HAVE_INITFINI_ARRAY is defined.

  Uli> This patch isn't quite correct.  You kept the function name as
  Uli> _fini which caused DT_FINI and DT_FINI_ARRAY to be created.
  Uli> I.e., the destructor got called twice.  I've checked in a fixed
  Uli> version.

Ah, I didn't remember that the _fini() name had special significance.

Thanks for catching and fixing it!

	--david


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