buildtools/binutils/libiberty
Niels Sascha Reedijk a635d7fb9b import binutils 2.41
2023-08-05 16:18:06 +01:00
..
config Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
testsuite import binutils 2.41 2023-08-05 16:18:06 +01:00
_doprnt.c import binutils 2.41 2023-08-05 16:18:06 +01:00
.gitignore Merge binutils 2.22 2012-01-06 00:20:08 +01:00
acinclude.m4 import binutils 2.41 2023-08-05 16:18:06 +01:00
aclocal.m4 import binutils 2.41 2023-08-05 16:18:06 +01:00
alloca.c import binutils 2.41 2023-08-05 16:18:06 +01:00
argv.c import binutils 2.41 2023-08-05 16:18:06 +01:00
asprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
at-file.texi Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
atexit.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
basename.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
bcmp.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
bcopy.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
bsearch_r.c import binutils 2.36.1 2022-07-15 13:48:03 +02:00
bsearch.c import binutils 2.36.1 2022-07-15 13:48:03 +02:00
bzero.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
calloc.c import binutils 2.41 2023-08-05 16:18:06 +01:00
ChangeLog import binutils 2.41 2023-08-05 16:18:06 +01:00
ChangeLog.jit import binutils 2.26 2016-02-10 18:58:24 +01:00
choose-temp.c import binutils 2.41 2023-08-05 16:18:06 +01:00
clock.c import binutils 2.41 2023-08-05 16:18:06 +01:00
concat.c import binutils 2.41 2023-08-05 16:18:06 +01:00
config.h-vms Merge binutils 2.22 2012-01-06 00:20:08 +01:00
config.in import binutils 2.32 2022-07-15 13:44:19 +02:00
configure import binutils 2.41 2023-08-05 16:18:06 +01:00
configure.ac import binutils 2.41 2023-08-05 16:18:06 +01:00
configure.com Merge binutils 2.22 2012-01-06 00:20:08 +01:00
copying-lib.texi import binutils 2.41 2023-08-05 16:18:06 +01:00
COPYING.LIB Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
copysign.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
cp-demangle.c import binutils 2.41 2023-08-05 16:18:06 +01:00
cp-demangle.h import binutils 2.41 2023-08-05 16:18:06 +01:00
cp-demint.c import binutils 2.41 2023-08-05 16:18:06 +01:00
cplus-dem.c import binutils 2.41 2023-08-05 16:18:06 +01:00
crc32.c import binutils 2.41 2023-08-05 16:18:06 +01:00
d-demangle.c import binutils 2.41 2023-08-05 16:18:06 +01:00
dwarfnames.c import binutils 2.41 2023-08-05 16:18:06 +01:00
dyn-string.c import binutils 2.41 2023-08-05 16:18:06 +01:00
fdmatch.c import binutils 2.41 2023-08-05 16:18:06 +01:00
ffs.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
fibheap.c import binutils 2.41 2023-08-05 16:18:06 +01:00
filedescriptor.c import binutils 2.41 2023-08-05 16:18:06 +01:00
filename_cmp.c import binutils 2.41 2023-08-05 16:18:06 +01:00
floatformat.c import binutils 2.41 2023-08-05 16:18:06 +01:00
fnmatch.c import binutils 2.41 2023-08-05 16:18:06 +01:00
fnmatch.txh Merge binutils 2.22 2012-01-06 00:20:08 +01:00
fopen_unlocked.c import binutils 2.41 2023-08-05 16:18:06 +01:00
functions.texi import binutils 2.41 2023-08-05 16:18:06 +01:00
gather-docs import binutils 2.41 2023-08-05 16:18:06 +01:00
getcwd.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
getopt1.c import binutils 2.41 2023-08-05 16:18:06 +01:00
getopt.c import binutils 2.41 2023-08-05 16:18:06 +01:00
getpagesize.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
getpwd.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
getruntime.c import binutils 2.41 2023-08-05 16:18:06 +01:00
gettimeofday.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
hashtab.c import binutils 2.41 2023-08-05 16:18:06 +01:00
hex.c import binutils 2.41 2023-08-05 16:18:06 +01:00
index.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
insque.c Merge binutils 2.22 2012-01-06 00:20:08 +01:00
lbasename.c import binutils 2.41 2023-08-05 16:18:06 +01:00
libiberty.texi import binutils 2.41 2023-08-05 16:18:06 +01:00
lrealpath.c import binutils 2.41 2023-08-05 16:18:06 +01:00
maint-tool import binutils 2.41 2023-08-05 16:18:06 +01:00
make-relative-prefix.c import binutils 2.41 2023-08-05 16:18:06 +01:00
make-temp-file.c import binutils 2.41 2023-08-05 16:18:06 +01:00
Makefile.in import binutils 2.41 2023-08-05 16:18:06 +01:00
makefile.vms import binutils 2.24 2014-03-19 17:25:32 +01:00
md5.c import binutils 2.41 2023-08-05 16:18:06 +01:00
memchr.c import binutils 2.41 2023-08-05 16:18:06 +01:00
memcmp.c import binutils 2.41 2023-08-05 16:18:06 +01:00
memcpy.c import binutils 2.41 2023-08-05 16:18:06 +01:00
memmem.c import binutils 2.41 2023-08-05 16:18:06 +01:00
memmove.c import binutils 2.41 2023-08-05 16:18:06 +01:00
mempcpy.c import binutils 2.41 2023-08-05 16:18:06 +01:00
memset.c import binutils 2.41 2023-08-05 16:18:06 +01:00
mkstemps.c import binutils 2.41 2023-08-05 16:18:06 +01:00
msdos.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
objalloc.c import binutils 2.41 2023-08-05 16:18:06 +01:00
obstack.c import binutils 2.41 2023-08-05 16:18:06 +01:00
obstacks.texi import binutils 2.41 2023-08-05 16:18:06 +01:00
partition.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pex-common.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pex-common.h import binutils 2.41 2023-08-05 16:18:06 +01:00
pex-djgpp.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pex-msdos.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pex-one.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pex-unix.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pex-win32.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pexecute.c import binutils 2.41 2023-08-05 16:18:06 +01:00
pexecute.txh Merge binutils 2.22 2012-01-06 00:20:08 +01:00
physmem.c import binutils 2.41 2023-08-05 16:18:06 +01:00
putenv.c import binutils 2.41 2023-08-05 16:18:06 +01:00
random.c import binutils 2.41 2023-08-05 16:18:06 +01:00
README import binutils 2.41 2023-08-05 16:18:06 +01:00
regex.c import binutils 2.41 2023-08-05 16:18:06 +01:00
rename.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
rindex.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
rust-demangle.c import binutils 2.41 2023-08-05 16:18:06 +01:00
safe-ctype.c import binutils 2.41 2023-08-05 16:18:06 +01:00
setenv.c import binutils 2.41 2023-08-05 16:18:06 +01:00
setproctitle.c import binutils 2.41 2023-08-05 16:18:06 +01:00
sha1.c import binutils 2.41 2023-08-05 16:18:06 +01:00
sigsetmask.c import binutils 2.26 2016-02-10 18:58:24 +01:00
simple-object-coff.c import binutils 2.41 2023-08-05 16:18:06 +01:00
simple-object-common.h import binutils 2.41 2023-08-05 16:18:06 +01:00
simple-object-elf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
simple-object-mach-o.c import binutils 2.41 2023-08-05 16:18:06 +01:00
simple-object-xcoff.c import binutils 2.41 2023-08-05 16:18:06 +01:00
simple-object.c import binutils 2.41 2023-08-05 16:18:06 +01:00
simple-object.txh Merge binutils 2.22 2012-01-06 00:20:08 +01:00
snprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
sort.c import binutils 2.41 2023-08-05 16:18:06 +01:00
spaces.c import binutils 2.41 2023-08-05 16:18:06 +01:00
splay-tree.c import binutils 2.41 2023-08-05 16:18:06 +01:00
stack-limit.c import binutils 2.41 2023-08-05 16:18:06 +01:00
stpcpy.c import binutils 2.41 2023-08-05 16:18:06 +01:00
stpncpy.c import binutils 2.41 2023-08-05 16:18:06 +01:00
strcasecmp.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
strchr.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
strdup.c import binutils 2.41 2023-08-05 16:18:06 +01:00
strerror.c import binutils 2.41 2023-08-05 16:18:06 +01:00
strncasecmp.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
strncmp.c Merge binutils 2.22 2012-01-06 00:20:08 +01:00
strndup.c import binutils 2.41 2023-08-05 16:18:06 +01:00
strnlen.c import binutils 2.24 2014-03-19 17:25:32 +01:00
strrchr.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
strsignal.c import binutils 2.41 2023-08-05 16:18:06 +01:00
strstr.c import binutils 2.41 2023-08-05 16:18:06 +01:00
strtod.c import binutils 2.41 2023-08-05 16:18:06 +01:00
strtol.c Merge binutils 2.22 2012-01-06 00:20:08 +01:00
strtoll.c import binutils 2.26 2016-02-10 18:58:24 +01:00
strtoul.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
strtoull.c import binutils 2.26 2016-02-10 18:58:24 +01:00
strverscmp.c import binutils 2.41 2023-08-05 16:18:06 +01:00
timeval-utils.c import binutils 2.41 2023-08-05 16:18:06 +01:00
tmpnam.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
unlink-if-ordinary.c import binutils 2.41 2023-08-05 16:18:06 +01:00
vasprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
vfork.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
vfprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
vprintf-support.c import binutils 2.41 2023-08-05 16:18:06 +01:00
vprintf-support.h import binutils 2.41 2023-08-05 16:18:06 +01:00
vprintf.c Merge binutils 2.22 2012-01-06 00:20:08 +01:00
vsnprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
vsprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
waitpid.c import binutils 2.32 2022-07-15 13:44:19 +02:00
xasprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00
xatexit.c import binutils 2.41 2023-08-05 16:18:06 +01:00
xexit.c import binutils 2.41 2023-08-05 16:18:06 +01:00
xmalloc.c import binutils 2.41 2023-08-05 16:18:06 +01:00
xmemdup.c import binutils 2.41 2023-08-05 16:18:06 +01:00
xstrdup.c Merge binutils 2.22 2012-01-06 00:20:08 +01:00
xstrerror.c Adding binutils 2.19 to trunk. 2009-01-25 21:40:16 +00:00
xstrndup.c import binutils 2.41 2023-08-05 16:18:06 +01:00
xvasprintf.c import binutils 2.41 2023-08-05 16:18:06 +01:00

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.