* Fix crash with LD_AUDIT
@ 2005-01-09 18:24 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2005-01-09 18:24 UTC (permalink / raw)
To: libc-hacker
2005-01-09 Andreas Schwab <schwab@suse.de>
* elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
Index: elf/rtld.c
===================================================================
RCS file: /cvs/glibc/libc/elf/rtld.c,v
retrieving revision 1.343
diff -u -a -p -a -u -p -r1.343 elf/rtld.c
--- elf/rtld.c 9 Jan 2005 08:26:07 -0000 1.343
+++ elf/rtld.c 9 Jan 2005 16:33:44 -0000
@@ -995,8 +995,8 @@ of this helper program; chances are you
{
/* Create a link_map for the executable itself.
This will be what dlopen on "" returns. */
- main_map
- = _dl_new_object ((char *) "", "", lt_executable, NULL, 0, LM_ID_BASE);
+ main_map = _dl_new_object ((char *) "", "", lt_executable, NULL,
+ __RTLD_OPENEXEC, LM_ID_BASE);
assert (main_map != NULL);
assert (main_map == GL(dl_ns)[LM_ID_BASE]._ns_loaded);
main_map->l_phdr = phdr;
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-09 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-09 18:24 Fix crash with LD_AUDIT Andreas Schwab
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).