You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
H.J. Lu 219822fd5d mmap: Avoid the sanitizer configure check failure 2 years ago
..
config merge from gcc 25 years ago
testsuite libiberty: Invoke D demangler when --format=auto 2 years ago
.gitignore bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore 16 years ago
COPYING.LIB Update the address and phone number of the FSF organization. 21 years ago
ChangeLog Synchronize sourceware version of the libiberty sources with the master gcc versions. 2 years ago
ChangeLog.jit Sync libiberty from GCC 12 years ago
Makefile.in mmap: Avoid the sanitizer configure check failure 2 years ago
README sync libiberty sources with gcc mainline 3 years ago
_doprnt.c Update year range in copyright notice of binutils files 2 years ago
acinclude.m4 mmap: Avoid the sanitizer configure check failure 2 years ago
aclocal.m4 mmap: Avoid the sanitizer configure check failure 2 years ago
alloca.c Import libiberty from gcc 4 years ago
argv.c Update year range in copyright notice of binutils files 2 years ago
asprintf.c Update year range in copyright notice of binutils files 2 years ago
at-file.texi * at-file.texi: Fix typo. 21 years ago
atexit.c merge from gcc 21 years ago
basename.c merge from gcc 21 years ago
bcmp.c merge from gcc 21 years ago
bcopy.c merge from gcc 20 years ago
bsearch.c sync libiberty from gcc 6 years ago
bsearch_r.c sync libiberty from gcc 6 years ago
bzero.c merge from gcc 21 years ago
calloc.c Import libiberty from gcc 4 years ago
choose-temp.c Update year range in copyright notice of binutils files 2 years ago
clock.c Update year range in copyright notice of binutils files 2 years ago
concat.c Update year range in copyright notice of binutils files 2 years ago
config.h-vms merge from gcc 17 years ago
config.in Synchronize sourceware version of the libiberty sources with the master gcc versions. 2 years ago
configure mmap: Avoid the sanitizer configure check failure 2 years ago
configure.ac Synchronize sourceware version of the libiberty sources with the master gcc versions. 2 years ago
configure.com 2009-09-01 Tristan Gingold <gingold@adacore.com> 17 years ago
copying-lib.texi Update year range in copyright notice of binutils files 2 years ago
copysign.c merge from gcc 21 years ago
cp-demangle.c Import gcc commit 65388b28656d65595bdaf191df85af81c35ca63 which adds support for explicit object member function mangling. 2 years ago
cp-demangle.h Update year range in copyright notice of binutils files 2 years ago
cp-demint.c Update year range in copyright notice of binutils files 2 years ago
cplus-dem.c libiberty: Invoke D demangler when --format=auto 2 years ago
crc32.c Update year range in copyright notice of binutils files 2 years ago
d-demangle.c Update year range in copyright notice of binutils files 2 years ago
dwarfnames.c Update year range in copyright notice of binutils files 2 years ago
dyn-string.c Update year range in copyright notice of binutils files 2 years ago
fdmatch.c Update year range in copyright notice of binutils files 2 years ago
ffs.c merge from gcc 21 years ago
fibheap.c Update year range in copyright notice of binutils files 2 years ago
filedescriptor.c Update year range in copyright notice of binutils files 2 years ago
filename_cmp.c Update year range in copyright notice of binutils files 2 years ago
floatformat.c Update year range in copyright notice of binutils files 2 years ago
fnmatch.c Update year range in copyright notice of binutils files 2 years ago
fnmatch.txh libiberty: documentation markup and order fixes. 15 years ago
fopen_unlocked.c Update year range in copyright notice of binutils files 2 years ago
functions.texi sync libiberty sources with gcc mainline 3 years ago
gather-docs Update year range in copyright notice of binutils files 2 years ago
getcwd.c merge from gcc 21 years ago
getopt.c Update year range in copyright notice of binutils files 2 years ago
getopt1.c Update year range in copyright notice of binutils files 2 years ago
getpagesize.c merge from gcc 21 years ago
getpwd.c merge from gcc 21 years ago
getruntime.c Update year range in copyright notice of binutils files 2 years ago
gettimeofday.c merge from gcc 21 years ago
hashtab.c Update year range in copyright notice of binutils files 2 years ago
hex.c Update year range in copyright notice of binutils files 2 years ago
index.c merge from gcc 21 years ago
insque.c libiberty: documentation markup and order fixes. 15 years ago
lbasename.c Update year range in copyright notice of binutils files 2 years ago
libiberty.texi Update year range in copyright notice of binutils files 2 years ago
lrealpath.c Update year range in copyright notice of binutils files 2 years ago
maint-tool Update year range in copyright notice of binutils files 2 years ago
make-relative-prefix.c Update year range in copyright notice of binutils files 2 years ago
make-temp-file.c Update year range in copyright notice of binutils files 2 years ago
makefile.vms 2013-07-09 Tristan Gingold <gingold@adacore.com> 13 years ago
md5.c Update year range in copyright notice of binutils files 2 years ago
memchr.c Import libiberty from gcc 4 years ago
memcmp.c Import libiberty from gcc 4 years ago
memcpy.c Import libiberty from gcc 4 years ago
memmem.c Update year range in copyright notice of binutils files 2 years ago
memmove.c Import libiberty from gcc 4 years ago
mempcpy.c Update year range in copyright notice of binutils files 2 years ago
memset.c Import libiberty from gcc 4 years ago
mkstemps.c Update year range in copyright notice of binutils files 2 years ago
msdos.c 19990502 sourceware import 27 years ago
objalloc.c Update year range in copyright notice of binutils files 2 years ago
obstack.c Update year range in copyright notice of binutils files 2 years ago
obstacks.texi Synchromize libiberty sources with master version in gcc repository 3 years ago
partition.c Update year range in copyright notice of binutils files 2 years ago
pex-common.c Update year range in copyright notice of binutils files 2 years ago
pex-common.h Update year range in copyright notice of binutils files 2 years ago
pex-djgpp.c Update year range in copyright notice of binutils files 2 years ago
pex-msdos.c Update year range in copyright notice of binutils files 2 years ago
pex-one.c Update year range in copyright notice of binutils files 2 years ago
pex-unix.c Synchronize sourceware version of the libiberty sources with the master gcc versions. 2 years ago
pex-win32.c Update year range in copyright notice of binutils files 2 years ago
pexecute.c Update year range in copyright notice of binutils files 2 years ago
pexecute.txh libiberty: documentation markup and order fixes. 15 years ago
physmem.c Update year range in copyright notice of binutils files 2 years ago
putenv.c Update year range in copyright notice of binutils files 2 years ago
random.c Import libiberty from gcc 4 years ago
regex.c Update year range in copyright notice of binutils files 2 years ago
rename.c merge from gcc 21 years ago
rindex.c merge from gcc 21 years ago
rust-demangle.c Update year range in copyright notice of binutils files 2 years ago
safe-ctype.c Update year range in copyright notice of binutils files 2 years ago
setenv.c Update year range in copyright notice of binutils files 2 years ago
setproctitle.c Update year range in copyright notice of binutils files 2 years ago
sha1.c Update year range in copyright notice of binutils files 2 years ago
sigsetmask.c Fix gnu11 fallout on Solaris 10+ 12 years ago
simple-object-coff.c Update year range in copyright notice of binutils files 2 years ago
simple-object-common.h Update year range in copyright notice of binutils files 2 years ago
simple-object-elf.c Update year range in copyright notice of binutils files 2 years ago
simple-object-mach-o.c Update year range in copyright notice of binutils files 2 years ago
simple-object-xcoff.c Update year range in copyright notice of binutils files 2 years ago
simple-object.c Update year range in copyright notice of binutils files 2 years ago
simple-object.txh libiberty: documentation markup and order fixes. 15 years ago
snprintf.c Update year range in copyright notice of binutils files 2 years ago
sort.c Update year range in copyright notice of binutils files 2 years ago
spaces.c Update year range in copyright notice of binutils files 2 years ago
splay-tree.c Update year range in copyright notice of binutils files 2 years ago
stack-limit.c Update year range in copyright notice of binutils files 2 years ago
stpcpy.c Update year range in copyright notice of binutils files 2 years ago
stpncpy.c Update year range in copyright notice of binutils files 2 years ago
strcasecmp.c merge from gcc 21 years ago
strchr.c merge from gcc 21 years ago
strdup.c Import libiberty from gcc 4 years ago
strerror.c Import libiberty from gcc 4 years ago
strncasecmp.c merge from gcc 21 years ago
strncmp.c libiberty: documentation markup and order fixes. 15 years ago
strndup.c Update year range in copyright notice of binutils files 2 years ago
strnlen.c merge from gcc 14 years ago
strrchr.c merge from gcc 21 years ago
strsignal.c Import libiberty from gcc 4 years ago
strstr.c Synchromize libiberty sources with master version in gcc repository 3 years ago
strtod.c Update year range in copyright notice of binutils files 2 years ago
strtol.c libiberty: documentation markup and order fixes. 15 years ago
strtoll.c Sync libiberty from GCC 12 years ago
strtoul.c merge from gcc 21 years ago
strtoull.c Sync libiberty from GCC 12 years ago
strverscmp.c Update year range in copyright notice of binutils files 2 years ago
timeval-utils.c Update year range in copyright notice of binutils files 2 years ago
tmpnam.c merge from gcc 21 years ago
unlink-if-ordinary.c Update year range in copyright notice of binutils files 2 years ago
vasprintf.c Update year range in copyright notice of binutils files 2 years ago
vfork.c merge from gcc 21 years ago
vfprintf.c Update year range in copyright notice of binutils files 2 years ago
vprintf-support.c Update year range in copyright notice of binutils files 2 years ago
vprintf-support.h Update year range in copyright notice of binutils files 2 years ago
vprintf.c libiberty: documentation markup and order fixes. 15 years ago
vsnprintf.c Update year range in copyright notice of binutils files 2 years ago
vsprintf.c Update year range in copyright notice of binutils files 2 years ago
waitpid.c Make libiberty/waitpid.c compile without warnings on MinGW 9 years ago
xasprintf.c Update year range in copyright notice of binutils files 2 years ago
xatexit.c Import libiberty from gcc 4 years ago
xexit.c Update year range in copyright notice of binutils files 2 years ago
xmalloc.c Update year range in copyright notice of binutils files 2 years ago
xmemdup.c Import libiberty from gcc 4 years ago
xstrdup.c * xstrdup.c: Include <sys/types.h> after "config.h". 18 years ago
xstrerror.c merge from gcc 21 years ago
xstrndup.c Update year range in copyright notice of binutils files 2 years ago
xvasprintf.c Update year range in copyright notice of binutils files 2 years ago

README

This directory contains the -liberty library of free software.
It is a collection of subroutines used by various GNU programs.
Current members include:

getopt -- get options from command line
obstack -- stacks of arbitrarily-sized objects
strerror -- error message strings corresponding to errno
strtol -- string-to-long conversion
strtoul -- string-to-unsigned-long conversion

We expect many of the GNU subroutines that are floating around to
eventually arrive here.

The library must be configured from the top source directory. Don't
try to run configure in this directory. Follow the configuration
instructions in ../README.

Please report bugs to https://gcc.gnu.org/bugzilla/ and send fixes to
"gcc-patches@gcc.gnu.org". Thank you.

ADDING A NEW FILE
=================

There are two sets of files: Those that are "required" will be
included in the library for all configurations, while those
that are "optional" will be included in the library only if "needed."

To add a new required file, edit Makefile.in to add the source file
name to CFILES and the object file to REQUIRED_OFILES.

To add a new optional file, it must provide a single function, and the
name of the function must be the same as the name of the file.

* Add the source file name to CFILES in Makefile.in and the object
file to CONFIGURED_OFILES.

* Add the function to name to the funcs shell variable in
configure.ac.

* Add the function to the AC_CHECK_FUNCS lists just after the
setting of the funcs shell variable. These AC_CHECK_FUNCS calls
are never executed; they are there to make autoheader work
better.

* Consider the special cases of building libiberty; as of this
writing, the special cases are newlib and VxWorks. If a
particular special case provides the function, you do not need
to do anything. If it does not provide the function, add the
object file to LIBOBJS, and add the function name to the case
controlling whether to define HAVE_func.

Finally, in the build directory of libiberty, configure with
"--enable-maintainer-mode", run "make maint-deps" to update
Makefile.in, and run 'make stamp-functions' to regenerate
functions.texi.

The optional file you've added (e.g. getcwd.c) should compile and work
on all hosts where it is needed. It does not have to work or even
compile on hosts where it is not needed.

ADDING A NEW CONFIGURATION
==========================

On most hosts you should be able to use the scheme for automatically
figuring out which files are needed. In that case, you probably
don't need a special Makefile stub for that configuration.

If the fully automatic scheme doesn't work, you may be able to get
by with defining EXTRA_OFILES in your Makefile stub. This is
a list of object file names that should be treated as required
for this configuration - they will be included in libiberty.a,
regardless of whatever might be in the C library.