~ubuntu-branches/ubuntu/precise/eglibc/precise

« back to all changes in this revision

Viewing changes to ports/sysdeps/m68k/libc-tls.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-04 17:48:26 UTC
  • mfrom: (216.1.23 oneiric)
  • Revision ID: package-import@ubuntu.com-20111004174826-2cyb9ewn3ucymlsx
Tags: 2.13-20ubuntu5
libc6-dev: Don't break the current {gnat,gcj}-4.4-base versons. LP: #853688.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Thread-local storage handling in the ELF dynamic linker.  m68k version.
2
 
   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2010 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
   Contributed by Maxim Kuvyrkov <maxim@codesourcery.com>, 2010.
5
5
 
21
21
#include <csu/libc-tls.c>
22
22
#include <dl-tls.h>
23
23
 
 
24
#if USE_TLS
 
25
 
24
26
/* On M68K, linker optimizations are not required, so __tls_get_addr
25
27
   can be called even in statically linked binaries.  In this case module
26
28
   must be always 1 and PT_TLS segment exist in the binary, otherwise it
32
34
  dtv_t *dtv = THREAD_DTV ();
33
35
  return (char *) dtv[1].pointer.val + GET_ADDR_OFFSET;
34
36
}
 
37
 
 
38
#endif