Changeset 4f205248 in mainline for uspace/lib/c/arch/ia32/src


Ignore:
Timestamp:
2018-04-23T18:50:40Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a2eb85d
Parents:
8d58fca
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-23 17:47:09)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-23 18:50:40)
Message:

Honor TLS alignment.

Location:
uspace/lib/c/arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/ia32/src/rtld/reloc.c

    r8d58fca r4f205248  
    181181                case R_386_TLS_TPOFF:
    182182                        DPRINTF("fixup R_386_TLS_TPOFF\n");
    183                         *r_ptr = (dest->ioffs + sym_def->st_value) - dest->rtld->tls_size;
     183                        *r_ptr = sym_def->st_value + dest->tpoff;
    184184                        break;
    185185
  • uspace/lib/c/arch/ia32/src/tls.c

    r8d58fca r4f205248  
    4545#endif
    4646
    47 tcb_t *tls_alloc_arch(void **data, size_t size)
     47tcb_t *tls_alloc_arch(size_t size, size_t align)
    4848{
    49         return tls_alloc_variant_2(data, size);
     49        return tls_alloc_variant_2(size, align);
    5050}
    5151
    52 void tls_free_arch(tcb_t *tcb, size_t size)
     52void tls_free_arch(tcb_t *tcb, size_t size, size_t align)
    5353{
    54         tls_free_variant_2(tcb, size);
     54        tls_free_variant_2(tcb, size, align);
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.