Go to file
Joseph Myers d7c1214f4d Use libc_hidden_* for fputs (bug 15105).
Among other localplt test failures when building with -Os, there are
libc.so PLT references for fputs.  fputs calls normally get redirected
to _IO_fputs by a macro in include/stdio.h (and _IO_fputs in turn uses
libc_hidden_proto), but GCC can convert an fprintf call with a
constant string argument into an fputs call, which of course is then
unaffected by the macro redirection.  (I don't know why this issue
only appears with -Os.)

This patch duly adds a use of libc_hidden_proto for fputs.  I see no
obvious reason why the fputs macro redirection is needed at all, but
this patch does not change it.

Tested for x86_64 (both that it removes this particular localplt
failure for -Os - but other such failures remain so the bug can't yet
be closed - and that the testsuite continues to pass without -Os).

	[BZ #15105]
	* include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
	libc_hidden_proto.
	* libio/iofputs.c (fputs): Use libc_hidden_weak.

(cherry picked from commit 499b315324)
2021-11-19 13:20:26 -08:00
argp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
assert Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
benchtests install: Replace scripts/output-format.sed with objdump -f [BZ #26559] 2021-11-15 13:16:26 -08:00
bits Update RWF_SUPPORTED for Linux kernel 4.16 [BZ #22947] 2021-08-27 16:22:10 -07:00
catgets Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
ChangeLog.old Add missing reference to bug 21654 2017-10-07 13:14:36 +02:00
conform Add clang and debug support to conformance scripts 2018-01-24 12:42:41 -08:00
crypt crypt: Fix badsalttest test (Bug 22765) 2018-02-01 00:02:49 -08:00
csu Fix -Os gnu_dev_* linknamespace, localplt issues (bug 15105, bug 19463). 2021-11-15 14:31:46 -08:00
ctype Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
debug Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
dirent Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dlfcn Add a hunk lost in merge 2018-03-28 20:31:52 -07:00
elf elf: Drop elf/tls-macros.h in favor of __thread and tls_model attributes [BZ #28152] [BZ #28205] 2021-08-27 17:26:09 -07:00
gmon Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gnulib Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
google-nsl-stub Update build process to create libnsl stub 2021-08-27 17:26:05 -07:00
grp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gshadow Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hesiod Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hurd hurd: Fix preprocessor indentation 2018-01-29 23:00:17 +01:00
iconv Disable tests that need more-recent infrastructure 2021-08-27 17:26:08 -07:00
iconvdata iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] 2021-08-27 17:26:08 -07:00
include Use libc_hidden_* for fputs (bug 15105). 2021-11-19 13:20:26 -08:00
inet Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
intl Disable tests that need more-recent infrastructure 2021-08-27 17:26:08 -07:00
io Don't crash if /var/tmp doesn't exist 2021-08-27 17:26:06 -07:00
libidn Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libio Use libc_hidden_* for fputs (bug 15105). 2021-11-19 13:20:26 -08:00
locale locale: Align _nl_C_LC_CTYPE_class and _nl_C_LC_CTYPE_class32 2021-08-27 17:26:05 -07:00
localedata gd_GB: Fix typo in abbreviated "May" (bug 23152). 2021-08-27 16:22:12 -07:00
login Update copyright dates not handled by scripts/update-copyrights. 2018-01-01 00:41:16 +00:00
mach hurd: Add expected ABI lists 2018-01-29 22:07:44 +01:00
malloc Make pointer in tst-realloc volatile also 2021-08-27 17:23:11 -07:00
manual manual: Various fixes to the mbstouwcs example, and mbrtowc update 2021-08-27 16:22:11 -07:00
math Put CMPLX* macros under ISO C11 2018-01-24 12:49:39 -08:00
mathvec Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
misc Fix -Os gnu_dev_* linknamespace, localplt issues (bug 15105, bug 19463). 2021-11-15 14:31:46 -08:00
nis Update build process to create libnsl stub 2021-08-27 17:26:05 -07:00
nptl Add a test of TLS support that will fail if leaky 2021-08-27 17:26:04 -07:00
nptl_db Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nscd Fix multiple definitions of __nss_*_database (bug 22918) 2018-03-02 23:07:14 +01:00
nss Update passwd.borg handling to use passwd.borg.real 2021-08-27 17:26:03 -07:00
po Update translations from the Translation Project 2018-03-12 13:24:46 +00:00
posix Fix -Os gnu_dev_* linknamespace, localplt issues (bug 15105, bug 19463). 2021-11-15 14:31:46 -08:00
pwd Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
resolv resolv: Fully initialize struct mmsghdr in send_dg [BZ #23037] 2021-08-27 16:22:11 -07:00
resource resource/tst-getrlimit.c: Add copyright header 2018-01-05 20:34:10 +01:00
rt Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
scripts install: Replace scripts/output-format.sed with objdump -f [BZ #26559] 2021-11-15 13:16:26 -08:00
setjmp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
shadow Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
signal Add tst-sigaction.c to test BZ #23069 2021-08-27 16:22:09 -07:00
socket Change this offsetof computation to use c89 offsetof. Tested: 2021-08-27 17:26:05 -07:00
soft-fp Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stdio-common Forward-port cl/42676407 to disable link-time warning about mktemp, tempnam and tmpnam. 2021-08-27 17:23:15 -07:00
stdlib Read f->func.cxa under the lock. 2021-08-27 17:26:07 -07:00
streams Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
string More aggressively prevent a buffer from being optimized out 2021-08-27 17:26:06 -07:00
sunrpc sunrpc: Remove stray exports without --enable-obsolete-rpc [BZ #23166] 2021-08-27 16:22:13 -07:00
support support: Preserve errno in write_message, TEST_VERIFY and other checks 2018-01-12 13:35:01 +01:00
sysdeps Fix -Os gnu_dev_* linknamespace, localplt issues (bug 15105, bug 19463). 2021-11-15 14:31:46 -08:00
sysvipc Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
termios Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
time Fix year 2039 bug for localtime with 64-bit time_t (bug 22639). 2021-08-27 17:26:03 -07:00
timezone Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wcsmbs Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wctype Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
.gitattributes Assume __NR_openat is always defined 2016-03-23 23:35:08 +01:00
.gitignore Add *.pyc to .gitignore 2015-05-18 15:26:26 +05:30
abi-tags Remove the bulk of the NaCl port. 2017-05-20 08:09:10 -04:00
aclocal.m4 LIBC_SLIBDIR_RTLDDIR: substitute arguments in single quotes 2018-01-25 17:20:28 +01:00
ChangeLog Fix year 2039 bug for localtime with 64-bit time_t (bug 22639). 2021-08-27 17:26:03 -07:00
config.h.in Set the retain attribute on _elf_set_element if CC supports [BZ #27492] 2021-08-31 15:36:41 -07:00
config.make.in install: Replace scripts/output-format.sed with objdump -f [BZ #26559] 2021-11-15 13:16:26 -08:00
configure install: Replace scripts/output-format.sed with objdump -f [BZ #26559] 2021-11-15 13:16:26 -08:00
configure.ac install: Replace scripts/output-format.sed with objdump -f [BZ #26559] 2021-11-15 13:16:26 -08:00
COPYING Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
COPYING.LIB Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
extra-lib.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
gen-locales.mk Split locale generation snippet into a separate file 2015-05-13 13:05:28 +05:30
INSTALL Fix typo in the previous commit 2018-01-31 23:13:00 +00:00
libc-abis A few more archs have IFUNC support. 2010-03-17 02:43:12 -07:00
libof-iterator.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
LICENSES Expand LICENSES file. 2012-12-05 21:56:15 +00:00
MAINTAINERS Add MAINTAINERS 2017-05-11 13:38:30 -04:00
Makeconfig Update build process to create libnsl stub 2021-08-27 17:26:05 -07:00
Makefile Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile.in New make target to only build benchmark binaries 2016-04-20 10:23:28 +05:30
Makerules install: Replace scripts/output-format.sed with objdump -f [BZ #26559] 2021-11-15 13:16:26 -08:00
NEWS [BZ #19239] Don't include sys/sysmacros.h from sys/types.h. 2021-08-27 17:26:00 -07:00
o-iterator.mk Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> 1995-03-17 18:42:51 +00:00
README Skeleton documentation for the RISC-V port 2018-01-29 10:22:26 -08:00
README.grte Update build notes 2021-08-27 17:23:15 -07:00
Rules Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
shlib-versions Integrate nss_{borg,cache} local changes from glibc-2.18 to 2.19 2014-02-28 12:54:06 -08:00
test-skeleton.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
version.h Update for 2.27 release 2018-02-01 16:17:18 +00:00

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.