From: Gustavo Niemeyer <niemeyer@conectiva.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] kernel update (second patch relative to 2.4.3)
Date: Tue, 24 Apr 2001 11:46:26 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005451@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005334@msgid-missing>
Hi David!!!
> - Hack fs/binfmt_elf so that the auxiliary information is
> passed independent of whether the binary is statically or
> dynamically linked (Rich, I haven't run this past Linus yet,
> but I hope he won't have an issue with it; it really makes
> no sense at all to not pass this info for static binaries:
> an ELF file is an ELF file, no matter whether it's static or
> dynamic).
This doesn't seem to be working well here. I've checked both glibc 2.2.1
and the latest 2.2.2 from CVS and I was still getting the following
error:
[root@ia64 /root]# ldd /bin/bash
BUG IN DYNAMIC LINKER ld.so: rtld.c: 614: dl_main: Assertion `_dl_rtld_map.l_libname' failed!
BUG IN DYNAMIC LINKER ld.so: rtld.c: 614: dl_main: Assertion `_dl_rtld_map.l_libname' failed!
ldd: /lib/ld-linux-ia64.so.2 exited with unknown exit code (127)
The problem seems to be the entry point address. glibc does the
following test at elf/rtld.c:392 to check if ld.so is being run as a
program or as an interpreter:
[...]
if (*user_entry = (ElfW(Addr)) &ENTRY_POINT)
[...]
With your patch, the function _dl_sysdep_start
(sysdeps/generic/dl-sysdep.c:80) changes the user_entry and this test
will always fail.
After reverting the patch referent to binfmt_elf.c, everything is
working fine.
--
Gustavo Niemeyer
[ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]
next prev parent reply other threads:[~2001-04-24 11:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-22 8:20 [Linux-ia64] kernel update (second patch relative to 2.4.2) David Mosberger
2001-03-22 11:15 ` Andreas Schwab
2001-03-22 19:22 ` Ahna, Christopher J
2001-03-22 22:18 ` Jim Wilson
2001-03-22 23:51 ` David Mosberger
2001-03-23 4:26 ` Jim Wilson
2001-03-23 5:17 ` David Mosberger
2001-03-23 6:53 ` Jim Wilson
2001-04-05 20:26 ` [Linux-ia64] kernel update (second patch relative to 2.4.3) David Mosberger
2001-04-24 11:46 ` Gustavo Niemeyer [this message]
2001-04-24 12:02 ` Jes Sorensen
2001-04-24 14:41 ` Gustavo Niemeyer
2001-04-24 17:18 ` Michael Madore
2001-04-24 17:21 ` Michael Madore
2001-04-24 21:05 ` Jes Sorensen
2001-04-24 21:48 ` David Mosberger
2001-04-25 16:43 ` McCaffity, Ray
2001-04-25 21:16 ` Jim Wilson
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=marc-linux-ia64-105590693005451@msgid-missing \
--to=niemeyer@conectiva.com \
--cc=linux-ia64@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.