[PATCH 0/6] TLS support

Austin Foxley austinf at cetoncorp.com
Sun Sep 20 19:29:18 UTC 2009


Adds TLS support from nptl branch. Please review and comment on what 
you would like to see changed before this goes to master.

Austin Foxley (6):
  Config.in: enable TLS config option only for nptl
  include/: add tls errno and res_state
  ldso/: tls support for dynamic linker
  resolv.c: add support for per thread res_state
  dl-support.c: add tls support
  errno.c: add tls support for errno

 extra/Configs/Config.in       |    2 +-
 include/.gitignore            |    9 +
 include/errno.h               |   20 +-
 include/libc-internal.h       |    2 +-
 include/link.h                |    2 +-
 include/netdb.h               |   36 +-
 include/resolv.h              |   24 +-
 include/time.h                |   11 +-
 ldso/include/dl-hash.h        |   61 ++-
 ldso/include/ldso.h           |    6 +
 ldso/include/ldsodefs.h       |  147 ++++++
 ldso/ldso/Makefile.in         |   11 +
 ldso/ldso/arm/aeabi_read_tp.S |   64 +++
 ldso/ldso/arm/dl-debug.h      |    4 +-
 ldso/ldso/arm/dl-sysdep.h     |   21 +-
 ldso/ldso/arm/elfinterp.c     |   52 ++-
 ldso/ldso/arm/resolve.S       |    4 +
 ldso/ldso/arm/thumb_atomics.S |   79 +++
 ldso/ldso/dl-elf.c            |   67 +++
 ldso/ldso/dl-hash.c           |   87 ++--
 ldso/ldso/dl-startup.c        |   14 +
 ldso/ldso/dl-tls.c            | 1045 +++++++++++++++++++++++++++++++++++++++++
 ldso/ldso/i386/elfinterp.c    |    4 +-
 ldso/ldso/ldso.c              |  158 ++++++-
 ldso/ldso/mips/elfinterp.c    |   71 +++-
 ldso/ldso/sh/dl-debug.h       |    2 +
 ldso/ldso/sh/dl-sysdep.h      |    9 +
 ldso/ldso/sh/elfinterp.c      |   39 ++-
 ldso/ldso/sparc/dl-sysdep.h   |    4 +-
 ldso/ldso/sparc/elfinterp.c   |   75 ++--
 ldso/libdl/libdl.c            |  325 +++++++++++++-
 libc/inet/Makefile.in         |    4 +-
 libc/inet/_res_state.c        |    8 +
 libc/inet/resolv.c            |   55 ++-
 libc/misc/elf/dl-support.c    |   41 ++
 libc/misc/internals/errno.c   |   13 +-
 36 files changed, 2399 insertions(+), 177 deletions(-)
 create mode 100644 ldso/include/ldsodefs.h
 create mode 100644 ldso/ldso/arm/aeabi_read_tp.S
 create mode 100644 ldso/ldso/arm/thumb_atomics.S
 create mode 100644 ldso/ldso/dl-tls.c
 create mode 100644 libc/inet/_res_state.c



More information about the uClibc mailing list