Skip to content
uClibc mirror
C C++ Assembly Makefile Shell Perl Other
Branch: master
Clone or download
vineetgarc and aldot NPTL/arc: notify kernel of the TP value
Native gdb makes a ptrace (GET_THREAD_AREA) which needs to return the
TP. however when libc sets up TP reg (for main thread), it doesn't call
arc_settls syscall so kernel doesn't know of TP register details
(moreso because clone doesnt have SETTLS flag)

Note that kernel doesn't know about r25 being TP etc.

This commit got lost in merge of NPTL tools into arc-mainline-dev and
showed up again as STAR 9000919529 (native gdb can't debug threaded

	[ARCLinux]# gdb ./pth
	Reading symbols from ./pth...(no debugging symbols found)...done.
	(gdb) b main
	Breakpoint 1 at 0x106f2
	(gdb) r
	Starting program: /pth
	[Thread debugging using libthread_db enabled]
	Using host libthread_db library "/lib/".
	thread_get_info_callback: cannot get thread info: generic error
	(gdb) q
Debugged-by: Anton Kolesov <>
Signed-off-by: Vineet Gupta <>
Signed-off-by: Bernhard Reutner-Fischer <>
Latest commit ca1c74d Jun 30, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs update arc4random from bug #885 Jun 15, 2012
extra ARC: enable IPv6 in defconfigs May 26, 2015
include h8300: 64bit integer support May 26, 2015
ldso h8300: Add new feature May 26, 2015
libc h8300: Makefile update May 26, 2015
libcrypt libcrypt: Rename some internal macros Mar 23, 2015
libintl intl, nptl_db: fix prerequisites Jun 24, 2010
libm libm: honor NO_LONG_DOUBLE in ldouble_wrappers Mar 23, 2015
libnsl libnsl,libresolv: do not include unneeded features.h Jun 15, 2012
libpthread NPTL/arc: notify kernel of the TP value Jul 5, 2015
libresolv libnsl,libresolv: do not include unneeded features.h Jun 15, 2012
librt librt: Add missing __dso_handle Apr 14, 2015
libubacktrace buildsys: fix IS_IN_lib* Sep 16, 2014
libutil utmp: favour POSIX utmpx over SVID utmp Mar 25, 2015
test test/silly: Extend include path. May 20, 2015
utils getconf.c: undef VERSION May 28, 2015
.gitignore .gitignore: Ignore dump files Apr 4, 2012
COPYING.LIB Update license file to Lesser GPL v2.1 Oct 19, 2005
COPYING.LIB.boilerplate boilerplate license we use Jul 5, 2006
Changelog-2010 Changelog: complete old data and cycle Jul 24, 2014
DEDICATION.mjn3 Today's Toni's birthday. Seems an appropriate day to add this. Feb 3, 2004
INSTALL buildsys: s/CROSS/CROSS_COMPILE/g Nov 25, 2011
MAINTAINERS fix compilation of linuxthreads for sparc Mar 18, 2009
Makefile always define CONFIG_SHELL Aug 17, 2009 buildsys: swap V=1 with V=2 command printing Apr 29, 2015 buildsys: pregen depends on xlocale Apr 29, 2015
Makerules buildsys: swap V=1 with V=2 command printing Apr 29, 2015
README copyright update Mar 1, 2006
Rules.mak h8300: config update May 26, 2015
TODO libm: Add missing C99 float/ld wrappers Mar 18, 2015


  uClibc - a Small C Library for Linux
  Erik Andersen <>

uClibc (aka µClibc/pronounced yew-see-lib-see) is a C library for
developing embedded Linux systems.  It is much smaller than the
GNU C Library, but nearly all applications supported by glibc
also work perfectly with uClibc.  Porting applications from glibc
to uClibc typically involves just recompiling the source code.
uClibc even supports shared libraries and threading.  It currently
runs on standard Linux and MMU-less (also known as µClinux)
systems with support for alpha, ARM, cris, e1, h8300, i386, i960,
m68k, microblaze, mips/mipsel, PowerPC, SH, SPARC, and v850

If you are building an embedded Linux system and you find that
glibc is eating up too much space, you should consider using
uClibc.  If you are building a huge fileserver with 12 Terabytes
of storage, then using glibc may make more sense.  Unless, for
example, that 12 Terabytes will be Network Attached Storage and
you plan to burn Linux into the system's firmware...

uClibc is maintained by Erik Andersen and is licensed under the
GNU LESSER GENERAL PUBLIC LICENSE.  This license allows you to
make closed source commercial applications using an unmodified
version of uClibc (Please consider sharing some of the money you
make ;-).  You do not need to give away all your source code just
because you use uClibc and/or run on Linux.  You should, however,
carefuly review the license and make certain you understand and
abide by it strictly.

For installation instructions, see the file INSTALL.

uClibc strives to be standards compliant, which means that most
documentation written for SuSv3, or for glibc also applies to
uClibc functions.  However, many GNU extensions are not supported
because they have not been ported, or more importantly, would
increase the size of uClibc disproportional to the added
functionality.  There is some discussion of these differences
in the "docs" directory.

Additional information (recent releases, FAQ, mailing list, bugs,
etc.) can be found at

uClibc may be freely modified and distributed under the terms of
the GNU Lesser General Public License, which can be found in the

Please Note:

	There is an unwholesomely huge amount of code out there
	that depends on the presence of GNU libc header files.
	We have GNU libc compatible header files.  So we have
	committed a horrible sin in uClibc.  We _lie_ and claim
	to be GNU libc in order to force these applications to
	work as their developers intended.  This is IMHO,
	pardonable, since these defines are not really intended
	to check for the presence of a particular library, but
	rather are used to define an _interface_.  Some programs
	are especially chummy with glibc, and may need this
	behavior disabled by adding CFLAGS+=-D__FORCE_NOGLIBC

	If you want to make special exceptions in your code which are
	specifically for uClibc, you can make certain to include features.h,
	and then have your code check for uClibc as follows:

	    #ifdef __UCLIBC__

And most of all, be sure to have some fun! :-)
You can’t perform that action at this time.