another .fini vs. .fini_array problem

David Mosberger davidm@napali.hpl.hp.com
Wed Nov 26 07:49:00 GMT 2003


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



More information about the Libc-hacker mailing list