* [parisc-linux] FWD: [PATCH] glibc fix for /lib/ld.so.1 (with attachments this time)
@ 2003-03-27 3:54 Ryan Bradetich
2003-03-27 4:12 ` [parisc-linux] " Carlos O'Donell
0 siblings, 1 reply; 2+ messages in thread
From: Ryan Bradetich @ 2003-03-27 3:54 UTC (permalink / raw)
To: carlos; +Cc: parisc-linux
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
Hello parisc-linux hackers,
Finally tracked down the glibc problem (with help from tausq and others
:)). I have attached the changelog entry, and the dpatch. I am
assuming you will push it upstream Carlos?
When working on this problem it caused a gcc ICE. The gcc ICE has been
reported at:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10215
This is why the ENTRY_POINT macro is uglier than really necessary.
Once this patch is in glibc, then we can remove the RGH_FIX hack
from the 2.4 kernels as well.
oh. This patch fixes this assert in glibc:
rbrad@vega:~$ /lib/ld.so.1 --verify /bin/sh
Inconsistency detected by ld.so: rtld.c: 879: dl_main: Assertion
`_rtld_local._dl_rtld_map.l_libname' failed!
Thanks!
- Ryan
--
Ryan Bradetich <rbradetich@uswest.net>
[-- Attachment #2: changelog.entry --]
[-- Type: text/plain, Size: 93 bytes --]
2003-03-26 Ryan Bradetich <rbrad@parisc-linux.org>
* sysdeps/hppa/elf/entry.h: New file.
[-- Attachment #3: hppa-entry.dpatch --]
[-- Type: text/x-sh, Size: 1180 bytes --]
#! /bin/sh -e
# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: <your description>
# DP: Author:
# DP: Upstream status: [In CVS | Debian-Specific | Pending | Not submitted ]
# DP: Status Details:
# DP: Date:
if [ $# -ne 2 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch -d "$2" -f --no-backup-if-mismatch -p1 < $0;;
-unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p1 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
esac
exit 0
# append the patch here and adjust the -p? flag in the patch calls.
--- /dev/null 2003-01-25 02:37:00.000000000 -0700
+++ glibc-2.3.1/sysdeps/hppa/elf/entry.h 2003-03-27 03:55:34.000000000 -0700
@@ -0,0 +1,10 @@
+#ifndef __ASSEMBLY__
+extern void _start (void);
+#endif
+
+/* The function's entry point is stored in the first word of the
+ function descriptor (plabel) of _start(). */
+#define ENTRY_POINT ({long int *tmp = (long int *)((long)_start & ~2); tmp[0];})
+
+/* We have to provide a special declaration. */
+#define ENTRY_POINT_DECL(class) class void _start (void);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [parisc-linux] Re: FWD: [PATCH] glibc fix for /lib/ld.so.1 (with attachments this time)
2003-03-27 3:54 [parisc-linux] FWD: [PATCH] glibc fix for /lib/ld.so.1 (with attachments this time) Ryan Bradetich
@ 2003-03-27 4:12 ` Carlos O'Donell
0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2003-03-27 4:12 UTC (permalink / raw)
To: Ryan Bradetich; +Cc: parisc-linux
Ryan,
> Finally tracked down the glibc problem (with help from tausq and others
> :)). I have attached the changelog entry, and the dpatch. I am
> assuming you will push it upstream Carlos?
Looks good. It looks like the only real way to solve this since ia64 and
powerpc64 have similar entry.h macro's.
> This is why the ENTRY_POINT macro is uglier than really necessary.
Not any uglier than the ia64 and powerpc64 macro's that do similar
things ;)
Thank you very much for working on this! :)
c.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-27 4:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-27 3:54 [parisc-linux] FWD: [PATCH] glibc fix for /lib/ld.so.1 (with attachments this time) Ryan Bradetich
2003-03-27 4:12 ` [parisc-linux] " Carlos O'Donell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox