• R
    overhaul SSP support to use a real canary · 58aa5f45
    Rich Felker 提交于
    pthread structure has been adjusted to match the glibc/GCC abi for
    where the canary is stored on i386 and x86_64. it will need variants
    for other archs to provide the added security of the canary's entropy,
    but even without that it still works as well as the old "minimal" ssp
    support. eventually such changes will be made anyway, since they are
    also needed for GCC/C11 thread-local storage support (not yet
    implemented).
    
    care is taken not to attempt initializing the thread pointer unless
    the program actually uses SSP (by reference to __stack_chk_fail).
    58aa5f45
dynlink.c 19.1 KB