Skip to content


Subversion checkout URL

You can clone with
Download ZIP
uClibc mirror
C C++ Assembly Makefile Shell Perl Other
Latest commit ca1c74d @vineetgarc vineetgarc committed with 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 <>
Failed to load latest commit information.
docs update arc4random from bug #885
extra ARC: enable IPv6 in defconfigs
include h8300: 64bit integer support
ldso h8300: Add new feature
libc h8300: Makefile update
libcrypt libcrypt: Rename some internal macros
libintl intl, nptl_db: fix prerequisites
libm libm: honor NO_LONG_DOUBLE in ldouble_wrappers
libnsl libnsl,libresolv: do not include unneeded features.h
libpthread NPTL/arc: notify kernel of the TP value
libresolv libnsl,libresolv: do not include unneeded features.h
librt librt: Add missing __dso_handle
libubacktrace buildsys: fix IS_IN_lib*
libutil utmp: favour POSIX utmpx over SVID utmp
test test/silly: Extend include path.
utils getconf.c: undef VERSION
.gitignore .gitignore: Ignore dump files
COPYING.LIB Update license file to Lesser GPL v2.1
COPYING.LIB.boilerplate boilerplate license we use
Changelog-2010 Changelog: complete old data and cycle
DEDICATION.mjn3 Today's Toni's birthday. Seems an appropriate day to add this.
MAINTAINERS fix compilation of linuxthreads for sparc
Makefile always define CONFIG_SHELL buildsys: swap V=1 with V=2 command printing buildsys: pregen depends on xlocale
Makerules buildsys: swap V=1 with V=2 command printing
README copyright update
Rules.mak h8300: config update
TODO libm: Add missing C99 float/ld wrappers


  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! :-)
Something went wrong with that request. Please try again.