From: Richard Henderson <rth@twiddle.net>
To: Roland McGrath <roland@redhat.com>
Cc: davidm@hpl.hp.com, libc-hacker@sources.redhat.com, hjl@lucon.org
Subject: Re: patch to make init_array work (2nd version; resend)
Date: Thu, 07 Nov 2002 18:10:00 -0000 [thread overview]
Message-ID: <20021107181034.B4047@twiddle.net> (raw)
In-Reply-To: <200211072158.gA7Lwqu29021@magilla.sf.frob.com>; from roland@redhat.com on Thu, Nov 07, 2002 at 01:58:52PM -0800
On Thu, Nov 07, 2002 at 01:58:52PM -0800, Roland McGrath wrote:
> That seems like a reasonable thing to do, though it's unfortunate it means
> changing all the platforms' start.S files. For preinit_array+init_array,
> start.S could just contain the code in the .init section, no? But probably
> it is better to write generic _init/_fini replacements in C.
I think the best solution is to write
static void
do_all_init(void)
{
// Loop over .preinit_array
// Loop over .init_array
_init ();
}
or whatever the proper ordering is, and then pass this
new function to __libc_start_main.
r~
next prev parent reply other threads:[~2002-11-08 2:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-07 11:43 David Mosberger
2002-11-07 13:31 ` Roland McGrath
2002-11-07 13:51 ` David Mosberger
2002-11-07 13:58 ` Roland McGrath
2002-11-07 14:10 ` David Mosberger
2002-11-07 14:29 ` Roland McGrath
2002-11-07 14:38 ` David Mosberger
2002-11-07 18:10 ` Richard Henderson [this message]
2002-11-07 18:20 ` Roland McGrath
2002-11-07 18:30 ` David Mosberger
2002-11-07 18:45 ` Roland McGrath
2002-11-08 11:34 Roland McGrath
2002-11-08 11:38 ` David Mosberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021107181034.B4047@twiddle.net \
--to=rth@twiddle.net \
--cc=davidm@hpl.hp.com \
--cc=hjl@lucon.org \
--cc=libc-hacker@sources.redhat.com \
--cc=roland@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).