This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Shared library annoyance with gcc-3_0-branch
- To: Geert Bosch <bosch at gnat dot com>
- Subject: Re: Shared library annoyance with gcc-3_0-branch
- From: Andreas Schwab <schwab at suse dot de>
- Date: 20 Feb 2001 20:28:04 +0100
- Cc: dewar at gnat dot com, rth at redhat dot com, torvalds at transmeta dot com,aoliva at redhat dot com, gcc at gcc dot gnu dot org
- References: <Pine.GSO.4.10.10102201303220.547-100000@nile.gnat.com>
Geert Bosch <bosch@gnat.com> writes:
|> On Tue, 20 Feb 2001 dewar@gnat.com wrote:
|>
|> |<<Yes. There must be exactly one copy of the exception handling
|> |routines in use within a program.
|> |>>
|> |
|> |Why is this the case? It sounds a bit suspicious (in particular, one
|> |wonders how this can be true, and yet exceptions work fine in a
|> |multi-threaded environment).
|>
|> RTH means that only one copy of the code and data must be linked in.
Not even that. Only one copy of the code must be _active_ during
runtime. There can well be multiple copies, as long as the other copies
are never called. That's because every copy of the code would use its own
private list of unwind info, and none of them whould have the whole list
(look for `static struct object *objects' in frame-dwarf2.c).
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg