This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: using libmudflap with non-instrumented shared libraries
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Rafael Espíndola" <rafael dot espindola at gmail dot com>
- Cc: gcc at gnu dot org
- Date: 20 Mar 2006 14:21:39 -0500
- Subject: Re: using libmudflap with non-instrumented shared libraries
- References: <564d96fb0603200936w3503c7d4y35a113abb447c4b@mail.gmail.com>
rafael.espindola wrote:
> [...]
> extern char *p;
> [...]
> char a = p[0];
> [...]
> compile and link with
> gcc -shared -fPIC a.c -o liba.so
> gcc -fmudflap -lmudflap b.c -la -L. -o b
Did the compiler give you a warning about inability to track the
lifetime of "p"? It should have.
- FChE