This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Pointer guard for static binaries?
- From: Daniel Jacobowitz <drow at false dot org>
- To: libc-alpha at sourceware dot org
- Date: Fri, 23 Dec 2005 12:57:02 -0500
- Subject: Pointer guard for static binaries?
It looks like the pointer guard is currently never initialized for static
binaries. The fallback __pointer_chk_guard is definitely never defined.
For architectures which use a TLS access for the pointer guard, this means
the guard is always zero.
I noticed this trying to define a non-TLS pointer guard on ARM; the primary
advantage of the TLS pointer guard appears to be efficiency, as far as I can
tell, and even PIC access is more efficient than TLS access on ARM.
--
Daniel Jacobowitz
CodeSourcery, LLC