This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Esthetics (or worse?) of Secure Pointers
- To: Chris Lattner <sabre at nondot dot org>
- Subject: Re: Esthetics (or worse?) of Secure Pointers
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Wed, 18 Apr 2001 10:55:57 +1000
- Cc: gcc at gcc dot gnu dot org, bernecky at acm dot org
- References: <Pine.LNX.4.21.0104171657170.11717-100000@nondot.org>
On 17-Apr-2001, Chris Lattner <sabre@nondot.org> wrote:
>
> > We discarded the function-level intermixing as too low-level
> > and complicated in practice. This left us with larger approaches to
> > the problem of intermixing checked and non-checked code:
>
> Another alternative way to implement this (which would allow a single libc
> that contains both bounded pointer code and nonbounded pointer code to
> exist in the same library), would be to mangle function names, ala
> C++. Of course you could do this really simply by simply prefixing all
> functions (C as well) with __BP_ or some such ugly thing.
Actually that's not always sufficient; to handle the general case,
you need to also add the prefix to data symbols.
Note that GNU C++ and most other current C++ implementations don't
mangle data symbols. Nor do they mangle function return types.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.