This is the mail archive of the
mailing list for the glibc project.
RE: Symbols for address space bounds
- From: "Boehm, Hans" <hans_boehm at hp dot com>
- To: "'Roland McGrath'" <roland at redhat dot com>, "Boehm, Hans" <hans_boehm at hp dot com>
- Cc: "MOSBERGER, DAVID (HP-PaloAlto,unix3)" <davidm at hpl dot hp dot com>, "'Hans_Boehm at hpl dot hp dot com'" <Hans_Boehm at hpl dot hp dot com>, "'tromey at redhat dot com'" <tromey at redhat dot com>, libc-alpha at sources dot redhat dot com
- Date: Tue, 4 Feb 2003 17:43:27 -0800
- Subject: RE: Symbols for address space bounds
I finally integrated this into the most recent collector distribution. It seems to work fine, thanks.
However, I don't think we ever resolved the issue about the stack base, and particularly a replacement for __libc_ia64_register_backing_store_base and __libc_stack_end. The problem is that I need to determine this from a library without control over the main program. Any ideas? (You suggested fixing pthread_getattr_np for the main stack. That would be nice, but that it inappropriate in the single-threaded case.)
> -----Original Message-----
> From: Roland McGrath [mailto:firstname.lastname@example.org]
> Sent: Wednesday, December 11, 2002 12:52 PM
> To: Boehm, Hans
> Cc: MOSBERGER, DAVID (HP-PaloAlto,unix3); 'Hans_Boehm@hpl.hp.com';
> 'email@example.com'; firstname.lastname@example.org
> Subject: RE: Symbols for address space bounds
> > That sounds like a good idea. Jakub already supplied a patch to use
> > dl_iterate_phdr in the collector whenever possible to find dynamic
> > library data segments. Is there any documentation beyond the
> > dl_iterate_phdr source code and what Jakub sent me?
> There is no documentation for that function. Its interface
> is trivial.
> The callback function gets the address and number of phdrs,
> which are the
> ElfNN_Phdr format defined in <elf.h>. That format and its meaning are
> documented in the ELF specs (http://www.caldera.com/developers/gabi).