Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 1997 11:54:48 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        hasty@rah.star-gate.com (Amancio Hasty)
Cc:        terry@lambert.org, hackers@freebsd.org
Subject:   Re: Any compiler guru? (Was: 2 questions about C++ support in 2.2)
Message-ID:  <199704261854.LAA07328@phaeton.artisoft.com>
In-Reply-To: <199704260106.SAA00408@rah.star-gate.com> from "Amancio Hasty" at Apr 25, 97 06:06:14 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> Dumb question: how are we assembling the code segments for devfs ?
> My understanding is that they have their own "psect" -- thats old VMS 
> nomenclature.

Are you talking about the linker sets from which the array of devices
is constructed?

A linker set is a mechanism recognized by the linker for collecting
like data into a single symbolic reference.  Generally, it's output
by C++ and utilized for ctor/dtor lists in the compiler implementation
of virtual base classes.  It's also used by SYSINIT() and similar
code from C (accessed as inline assembly code, since C doesn't have
object capabilities).

This type of *collection* is different from the *agregation* which
needs to be done to support a single class instance.  Because the
symbol data is added together in the resulting image (collected),
rather than uniqified, this can work in the simple a.out images
which FreeBSD uses.


					Regards,
					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704261854.LAA07328>