This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Has the dynamic section to be read-write?
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: Has the dynamic section to be read-write?
- From: Roland McGrath <roland at frob dot com>
- Date: Tue, 23 Nov 1999 02:42:37 -0500
- Cc: "GNU C. library Alpha Tester List" <libc-alpha at sourceware dot cygnus dot com>, "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>, Florian Lohoff <flo at rfc822 dot org>
- Emacs: a Lisp interpreter masquerading as ... a Lisp interpreter!
The dynamic linker code just uses that space to cache its own values
because it was convenient and writable already anyway. On other platforms
the ABI says the dynamic section has to be writable, I think the only
reason being so the DT_DEBUG slot can be modified by the dynamic linker.
Probably the best thing to do is just rewrite that part of the data
structure so that it caches values from the dynamic section (modified as
convenient for the dynamic linker) directly in its own array rather than
using an array of pointers into the dynamic section as it does now.