This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]