This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/19463] linknamespace failures when compiled with -Os
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 13 Mar 2017 18:46:45 +0000
- Subject: [Bug libc/19463] linknamespace failures when compiled with -Os
- Auto-submitted: auto-generated
- References: <bug-19463-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19463
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via ae65d4f3c3995279ca458c460ebf8bab1885fa03 (commit)
from 53a4608f8de7a89a41917ffeba9cd2098d6dec86 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ae65d4f3c3995279ca458c460ebf8bab1885fa03
commit ae65d4f3c3995279ca458c460ebf8bab1885fa03
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date: Mon Mar 13 18:42:35 2017 +0000
Remove the str(n)dup inlines from string/bits/string2.h. Although
inlining
calls with constant strings shows a small (~10%) performance gain, strdup
is
typically used in error reporting code, so not performance critical.
Remove the now unused __need_malloc_and_calloc related defines from
stdlib.h.
Rename existing uses of str(n)dup to __str(n)dup so it no longer needs to
be
redirected to a builtin. Also building GLIBC with -Os now no longer shows
localplt or linkname space failures (partial fix for BZ #15105 and BZ
#19463).
[BZ #15105]
[BZ #19463]
* elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
* inet/rcmd.c (rcmd_af): Likewise.
* inet/rexec.c (rexec_af): Likewise.
* intl/dcigettext.c (_LIBC): Likewise.
* intl/finddomain.c (_nl_find_domain): Use strdup expansion.
* locale/loadarchive.c (_nl_load_locale_from_archive): Use
__strdup.
* locale/setlocale.c (setlocale): Likewise.
* posix/spawn_faction_addopen.c
(posix_spawn_file_actions_addopen): Likewise.
* stdlib/putenv.c (putenv): Use __strndup.
* sunrpc/svc_simple.c (__registerrpc): Use __strdup.
* sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
* include/stdlib.h (__need_malloc_and_calloc): Remove uses.
(__Need_M_And_C) Remove define/undef.
* stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
(__malloc_and_calloc_defined): Remove define.
* string/bits/string2.h (__strdup): Remove define.
(strdup): Likewise.
(__strndup): Likewise.
(strndup): Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 25 +++++++++++++++++
elf/dl-cache.c | 2 +-
include/stdlib.h | 8 +-----
inet/rcmd.c | 2 +-
inet/rexec.c | 2 +-
intl/dcigettext.c | 1 +
intl/finddomain.c | 6 ----
locale/loadarchive.c | 2 +-
locale/setlocale.c | 2 +-
posix/spawn_faction_addopen.c | 2 +-
stdlib/putenv.c | 2 +-
stdlib/stdlib.h | 18 ++----------
string/bits/string2.h | 59 -----------------------------------------
sunrpc/svc_simple.c | 4 +-
sysdeps/posix/getaddrinfo.c | 4 +-
15 files changed, 41 insertions(+), 98 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.