public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: "Richard B. Johnson" <root@chaos.analogic.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Shared Library starter, ld.so
Date: Fri, 6 Jun 2003 03:13:13 -0700	[thread overview]
Message-ID: <20030606101313.GA28939@twiddle.net> (raw)
In-Reply-To: <Pine.LNX.4.53.0306051045180.6171@chaos>

On Thu, Jun 05, 2003 at 10:46:18AM -0400, Richard B. Johnson wrote:
> The dynamic linker, provided with RedHat 9 no longer
> compiles with the de facto standard of having register
> EDX point to function to be called before exit.

You're wrong.  Indeed, the rh9 crt1.o still expects the value:


   8:   50                      push   %eax
   9:   54                      push   %esp
   a:   52                      push   %edx		<<==== HERE
   b:   68 00 00 00 00          push   $0x0
                        c: R_386_32     __libc_csu_fini
  10:   68 00 00 00 00          push   $0x0
                        11: R_386_32    __libc_csu_init
  15:   51                      push   %ecx
  16:   56                      push   %esi
  17:   68 00 00 00 00          push   $0x0
                        18: R_386_32    main
  1c:   e8 fc ff ff ff          call   1d <_start+0x1d>
                        1d: R_386_PC32  __libc_start_main

and ld.so provides the value here:

        # Pass our finalizer function to the user in %edx, as per ELF ABI.\n\
        leal _dl_fini@GOTOFF(%ebx), %edx\n\



r~

  reply	other threads:[~2003-06-06  9:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-05 14:46 Shared Library starter, ld.so Richard B. Johnson
2003-06-06 10:13 ` Richard Henderson [this message]
2003-06-06 11:34   ` Richard B. Johnson
2003-06-06 21:10     ` Richard Henderson

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=20030606101313.GA28939@twiddle.net \
    --to=rth@twiddle.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.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