git: rtld - Use kern.tls_extra

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Mar 7 09:48:16 PST 2020


commit 4c898ae594e26f4901a584d0cfe471cb018bea11
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Mar 7 09:41:28 2020 -0800

    rtld - Use kern.tls_extra
    
    * Use kern.tls_extra, if available, to calculate the extra tls
      space to allocate for late library loads.
    
    * If not available, default to 6144 bytes instead of 1280 bytes
      to support greater use of static tls sections in late-loaded
      libraries (read: mesa 19.3).
    
    Reported-by: ftigeot

Summary of changes:
 libexec/rtld-elf/rtld.c      | 43 ++++++++++++++++++++++++++++++++++++++++++-
 sys/cpu/x86_64/include/tls.h |  2 +-
 2 files changed, 43 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4c898ae594e26f4901a584d0cfe471cb018bea11


-- 
DragonFly BSD source repository



More information about the Commits mailing list