[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: ProPolice symbols in libc or libssp ?
From:       Joerg Sonnenberger <joerg () britannica ! bec ! de>
Date:       2005-07-28 22:30:30
Message-ID: 20050728223030.GA4570 () britannica ! bec ! de
[Download RAW message or body]

On Fri, Jul 29, 2005 at 12:14:47AM +0200, Jeremie Le Hen wrote:
> > Make sure you patch the right place and _not_ the shared part. Does the
> > attached patch work for you?
> 
> Yes, this worked, thank you !  This implies that libssp must be linked
> with -nodefaultlibs option to avoid linking itself against libssp.  But
> this also prevents it from being linked against libgcc.  Is it
> something harmful or not (in other words should I manually add -lgcc to
> LDFLAGS) ?

The problem with linking -lssp is that you normally want to aovid the
circular dependency with libc. For static libraries that's not a
problem, but for dynamic loading it is a bit nasty. One idea is to build
libssp similiar to RTLD by directly linking the necessary parts of libc
in, you can use a linker script to hide the symbols. 

For linking -lssp itself, you could try to exploit
"-fno-stack-protector" and use that to not link libssp into.

Joerg
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic