git: libc: Rip out pthread_cancel stub symbol.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Mon Oct 24 05:15:19 PDT 2016


commit ceeadccd358e346511796c7b057af4af0ae50f2d
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Oct 4 10:37:35 2016 +0300

    libc: Rip out pthread_cancel stub symbol.
    
    After looking through use cases i couldn't find any signs of libc
    needing to provide stub for pthread_cancel() function.
    It doesn't make much sense for any program to use this symbol but
    not use the pthread_create(). With this assumption it should be safe
    to move out pthread_cancel() from libc to libpthread.so dummy to be
    together with weak symbol of pthread_create().
    
    Add special WRlc() macro that creates only the internal version stub
    to still provide the _pthread_cancel symbol even if it unused in libc.
    
    Doing just that fixes how gcc libs check for pthread presence when
    playing weak symbol chasing games withouto any confingure time tests.

Summary of changes:
 lib/libc/gen/Symbol.map       |  1 -
 lib/libc/gen/_pthread_stubs.c |  4 +++-
 lib/libpthread/dummy.c        | 11 +++++++++--
 3 files changed, 12 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ceeadccd358e346511796c7b057af4af0ae50f2d


-- 
DragonFly BSD source repository



More information about the Commits mailing list