Changeset 3a9414e in mainline


Ignore:
Timestamp:
2016-05-22T20:22:59Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f356618
Parents:
b272c67a
Message:

Do not touch dtv if CONFIG_RTLD is not enabled. Fixes non-ia32 builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/tls.c

    rb272c67a r3a9414e  
    9797void tls_free(tcb_t *tcb)
    9898{
     99#ifdef CONFIG_RTLD
    99100        free(tcb->dtv);
     101#endif
    100102        tls_free_arch(tcb, tls_get_size());
    101103}
     
    116118                return NULL;
    117119        *data = ((void *)tcb) + sizeof(tcb_t);
     120#ifdef CONFIG_RTLD
    118121        tcb->dtv = NULL;
     122#endif
    119123
    120124        return tcb;
     
    149153        tcb = (tcb_t *) (*data + size);
    150154        tcb->self = tcb;
     155#ifdef CONFIG_RTLD
    151156        tcb->dtv = NULL;
     157#endif
    152158
    153159        return tcb;
Note: See TracChangeset for help on using the changeset viewer.