2015-07-06  Andrew Stubbs  <ams@codesourcery.com>

	Forward port from 4.6a:

	2011-11-11  Joseph Myers  <joseph@codesourcery.com>

	Issue #12452

	* sysdeps/powerpc/powerpc32/e500/strcmp.S
	(unaligned_last_was_first): Only check for NULs in low part of r7.
	* release-notes-csl.xml (E500 <function>strcmp</function> bug
	fix): New.

2015-06-04  Joseph Myers  <joseph@codesourcery.com>

	Issue #17014

	Backport from FSF:

	2014-01-04  Maxim Kuvyrkov  <maxim@kugelworks.com>
		    Ondřej Bílka  <neleai@seznam.cz>

	[BZ #15073]
	* malloc/malloc.c (_int_free): Perform sanity check only if we
	have_lock.

2015-05-08  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16988
	
	Backport from upstream:
	
	2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
	
	[BZ #18287]
	* resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
	based on padding.  (CVE-2015-1781)

2015-04-30  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16982
	
	Backport from upstream:
	
	2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
	
	[BZ #16618]
	* stdio-common/tst-sscanf.c (main): Test for buffer overflow.
	* stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
	size in bytes. Store needed elements in wpmax. Use needed size
	in bytes for extend_alloca.

2015-04-22  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16913
	
	Backport from upstream:
	
	2014-06-03  Andreas Schwab  <schwab@suse.de>
	
	[BZ #15946]
	* resolv/res_send.c (send_dg): Reload file descriptor after
	calling reopen.

2015-03-12  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16912

	Backport from upstream:

	2014-12-16  Florian Weimer  <fweimer@redhat.com>

	[BZ #17630]
	* resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
	names.

2015-03-10  Joseph Myers  <joseph@codesourcery.com>

	Issue #16919

	Backport from FSF:

	2013-12-18  Andreas Schwab  <schwab@suse.de>

	* sysdeps/i386/i686/multiarch/strstr.c: Remove.
	* sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
	* sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
	* sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
	* sysdeps/i386/i686/multiarch/Makefile: Update.
	* sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.

	2013-12-14  Ondřej Bílka  <neleai@seznam.cz>

	[BZ #12100]
	* sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
	* sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
	* sysdeps/x86_64/multiarch/strstr.c: ... here.
	(strstr): Add __strstr_sse2_unaligned ifunc.
	* sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
	* sysdeps/x86_64/multiarch/strcasestr.c ... here.
	(strcasestr): Remove __strcasestr_sse42 ifunc.
	* sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
	* sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
	* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.

2015-01-26  Andrew Stubbs  <ams@codesourcery.com>

	Issue #16864

	Backport from upstream:

	2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>

	[BZ #12926]
	* sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
	infinite loop when __recvmsg returns 0.

2015-01-14  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16801
	
	Backport from upstream:
	
	2014-09-03  Florian Weimer  <fweimer@redhat.com>
	
	[BZ #17325]
	* iconvdata/ibm1364.c (BODY): Fix check for sentinel.
	* iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
	assert.
	* iconvdata/ibm933.c (BODY): Fix check for sentinel.
	* iconvdata/ibm935.c (BODY): Likewise.
	* iconvdata/ibm937.c (BODY): Likewise.
	* iconvdata/ibm939.c (BODY): Likewise.
	* iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
	assert.
	* iconvdata/Makefile (iconv-test.out): Pass module list to test
	script.
	* iconvdata/run-iconv-test.sh: New test loop for checking for
	decoder crashers.

2014-12-17  Andrew Stubbs  <ams@codesourcery.com>

	Issue #16782

	Backport from upstream:

	2014-11-19  Carlos O'Donell  <carlos@redhat.com>
		    Florian Weimer  <fweimer@redhat.com>
		    Joseph Myers  <joseph@codesourcery.com>
		    Adam Conrad  <adconrad@0c3.net>
		    Andreas Schwab  <schwab@suse.de>
		    Brooks Moses  <bmoses@google.com>

	[BZ #17625]
	* wordexp-test.c(__dso_handle): Add prototype.
	(__register_atfork): Likewise.
	(__app_register_atfork): New function.
	(registered_forks): New global.
	(register_fork): New function.
	(test_case): Add 3 new tests for WRDE_CMDSUB.
	(main): Call __app_register_atfork.
	(testit): If WRDE_NOCMD set registered_forks to zero, run test, and
	if fork count is non-zero fail the test.
	* posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
	is set.
	(parse_dollars): Remove check for WRDE_NOCMD.
	(parse_dquote): Likewise.

2014-10-17  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16682

	* stdlib/Makefile (CFLAGS-abort.c): Compile with unwind information.

2014-10-13  Andrew Stubbs  <ams@codesourcery.com>

	Issue #16671

	Backport from upstream:

	2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>

	[BZ #15859]
	* elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.

2014-09-04  Andrew Stubbs  <ams@codesourcery.com>

	Issue #16576

	Backport from upstream:

	2014-08-26  Florian Weimer  <fweimer@redhat.com>

	[BZ #17187]
	* iconv/gconv_trans.c (struct known_trans, search_tree, lock,
	trans_compare, open_translit, __gconv_translit_find):
	Remove module loading code.

2014-08-19  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16452

	* sysdeps/powerpc/powerpc64/e5500/strlen.S: Delete.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist,
	ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist,
	ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nptl/libc.abilist:
	Add entry for largememcpy.
	
2014-08-19  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #16452
	
	Merge patches from FSL SDK v1.6 - do not push upstream.
	
	* include/string.h, string/string.h: Create hidden prototype for
	largememcpy on PowerPC.
	* ports/sysdeps/powerpc/powerpc32/e500/strcmp.S,
	ports/sysdeps/powerpc/powerpc32/e500/strcpy.S,
	ports/sysdeps/powerpc/powerpc32/e500/strlen.S,
	ports/sysdeps/powerpc/powerpc32/e500/memcpy.S,
	ports/sysdeps/powerpc/powerpc32/e500/memmove.S,
	ports/sysdeps/powerpc/powerpc32/e500/memset.S,
	sysdeps/powerpc/memcpy.c,
	sysdeps/powerpc/powerpc32/e500mc/Makefile,
	sysdeps/powerpc/powerpc32/e500mc/memcpy.S,
	sysdeps/powerpc/powerpc32/e500mc/largememcpy.S,
	sysdeps/powerpc/powerpc32/e500mc/strlen.S,
	sysdeps/powerpc/powerpc32/e5500/memcpy.S,
	sysdeps/powerpc/powerpc32/e6500/memcpy.S,
	sysdeps/powerpc/powerpc32/e6500/memset.S
	sysdeps/powerpc/powerpc64/e5500/Makefile,
	sysdeps/powerpc/powerpc64/e5500/memcpy.S,
	sysdeps/powerpc/powerpc64/e5500/largememcpy.S,
	sysdeps/powerpc/powerpc64/e5500/strlen.S,
	sysdeps/powerpc/powerpc64/e6500/memcpy.S,
	sysdeps/powerpc/powerpc64/e6500/memset.S: New.
	* ports/sysdeps/powerpc/powerpc32/405/memcpy.S,
	sysdeps/powerpc/powerpc32/a2/memcpy.S,
	sysdeps/powerpc/powerpc32/cell/memcpy.S,
	sysdeps/powerpc/powerpc32/power4/memcpy.S,
	sysdeps/powerpc/powerpc32/power6/memcpy.S,
	sysdeps/powerpc/powerpc32/power7/memcpy.S,
	sysdeps/powerpc/powerpc64/a2/memcpy.S,
	sysdeps/powerpc/powerpc64/cell/memcpy.S,
	sysdeps/powerpc/powerpc64/power4/memcpy.S,
	sysdeps/powerpc/powerpc64/power6/memcpy.S,
	sysdeps/powerpc/powerpc64/power7/memcpy.S: Alias memcpy to
	largememcpy.  Create hidden definition for largememcpy.
	* sysdeps/powerpc/fpu/math_private.h (__CPU_HAS_FSQRT): Always
	check the feature flags to set.
	* sysdeps/powerpc/Versions: Add version for largememcpy.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/801/dl-sysdep.c,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/801/libc-start.c,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/821/dl-sysdep.c,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/821/libc-start.c,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/823/dl-sysdep.c,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/823/libc-start.c,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/860/dl-sysdep.c,
	sysdeps/unix/sysv/linux/powerpc/powerpc32/860/libc-start.c: New.
	* elf/dl-runtime.c (_dl_profile_fixup): Always define.
	* sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
	Always define.
	* sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
	Delete workaround for 8xx processors.
	* sysdeps/unix/sysv/linux/powerpc/libc-start.c (__libc_start_main):
	Likewise.

2014-08-06  Joseph Myers  <joseph@codesourcery.com>

	Issue #16518

	Backport from FSF:

	2014-07-02  Florian Weimer  <fweimer@redhat.com>

	* locale/setlocale.c (setlocale): Use strdup for allocating
	composite name copy.

	2014-07-02  Florian Weimer  <fweimer@redhat.com>

	[BZ #17137]
	* locale/findlocale.c (name_present, valid_locale_name): New
	functions.
	(_nl_find_locale): Use the loc_name variable to store name
	candidates.  Call name_present and valid_locale_name to check and
	validate locale names.  Return an error if the locale is invalid.

	localedata/
	2014-07-02  Florian Weimer  <fweimer@redhat.com>

	* tst-setlocale3.c: New file.
	* Makefile (tests): Add tst-setlocale3.
	(tst-setlocale3-ENV): New variable.

2014-08-06  Joseph Myers  <joseph@codesourcery.com>

	Issue #15578

	Backport from FSF:

	2013-08-16  Florian Weimer  <fweimer@redhat.com>

	[BZ #14699]
	CVE-2013-4237
	* sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
	member.
	* sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
	member.
	* sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
	* sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
	Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
	conditional.
	* sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
	GETDENTS_64BIT_ALIGNED.
	* sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
	* manual/filesys.texi (Reading/Closing Directory): Document
	ENAMETOOLONG return value of readdir_r.  Recommend readdir more
	strongly.
	* manual/conf.texi (Limits for Files): Add portability note to
	NAME_MAX, PATH_MAX.
	(Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.

2014-08-05  Joseph Myers  <joseph@codesourcery.com>

	Issue #15576

	Backport from FSF:

	2013-09-11  Will Newton  <will.newton@linaro.org>

	[BZ #15855]
	* malloc/malloc.c (__libc_pvalloc): Check the value of bytes
	does not overflow.

	2013-09-11  Will Newton  <will.newton@linaro.org>

	[BZ #15856]
	* malloc/malloc.c (__libc_valloc): Check the value of bytes
	does not overflow.

	2013-09-11  Will Newton  <will.newton@linaro.org>

	[BZ #15857]
	* malloc/malloc.c (__libc_memalign): Check the value of bytes
	does not overflow.

	2013-10-10  Will Newton  <will.newton@linaro.org>

	* malloc/hooks.c (memalign_check): Ensure the value of bytes
	passed to _int_memalign does not overflow.

2014-06-19  Joseph Myers  <joseph@codesourcery.com>

	Issue #16436

	Backport from FSF:

	2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>

	[BZ #16072]
	* sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
	heap for large requests.

2014-05-23  Joseph Myers  <joseph@codesourcery.com>

	Issue #16002

	* stdio-common/vfprintf.c: Apply patch from
	<https://bugzilla.redhat.com/show_bug.cgi?id=826943>.
	* stdio-common/bug27.c: New file.
	* stdio-common/Makefile (tests): Add bug27.

2014-03-27  Joseph Myers  <joseph@codesourcery.com>

	Issue #16145

	Backport from FSF:

	2014-01-06  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
	Rename to ...
	(__ptrace_peeksiginfo_args): ... this.
	* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.

	ports/
	2014-01-06  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (ptrace_peeksiginfo_args):
	Rename to ...
	(__ptrace_peeksiginfo_args): ... this.

	2014-01-06  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (ptrace_peeksiginfo_args):
	Rename to ...
	(__ptrace_peeksiginfo_args): ... this.

	2014-01-06  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/unix/sysv/linux/tile/sys/ptrace.h (ptrace_peeksiginfo_args):
	Rename to ...
	(__ptrace_peeksiginfo_args): ... this.

2013-12-18  Kwok Cheung Yeung  <kcy@codesourcery.com>

	Issue #15720
 
	* malloc/mtrace.c (tr_freehook): Move function prototype to
	before the hook definitions.  Disable all hooks before calling
	the caller or old hook, and re-enable all hooks afterwards.
	(tr_mallochook): Likewise.
	(tr_reallochook): Likewise.
	(tr_freehook): Likewise.

2013-11-28  Andrew Stubbs  <ams@codesourcery.com>

	Issue #15660

	From libc-ports@sourceware.org:

	2012-07-11  Andrew Pinski  <apinski@cavium.com>

	Bug #2964
	* ports/sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Delete.
	(PAGE_SIZE): Delete.
	(PAGE_MASK): Delete.
	(NBPG): Delete.
	(HOST_STACK_END_ADDR): Delete.

2013-11-26  Andrew Stubbs  <ams@codesourcery.com>

	Issue #15710

	Backport from mainline:

	ports/
	2013-08-30  Will Newton  <will.newton@linaro.org>

	[BZ #15909]
	* sysdeps/unix/sysv/linux/arm/clone.S (__clone): Use blx
	instead of mov lr, pc.

2013-10-26  Julian Brown  <julian@codesourcery.com>

	Backport from mainline:

	2013-10-03  Brooks Moses  <bmoses@google.com>

	[BZ #15915]
	* Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
	* Makerules: ...here, and adjust associated comments.

2013-10-23  Cesar Philippidis  <cesar@codesourcery.com>

	Issue #15479 (BZ #15790)

	nptl/
	* pthread_mutexattr_gettype.c: Mask out internal references
	to PTHREAD_MUTEX_NO_ELISON_NP.

2013-09-20  Cesar Philippidis  <cesar_philippidis@mentor.com>

	* ports/sysdeps/unix/sysv/linux/aarch64/configure: Restore.

2013-09-17  Cesar Philippidis  <cesar_philippidis@mentor.com>

	* Merge 0001-ARM-Pass-dl_hwcap-to-IFUNC-resolver.patch
	from OE-Core 1ab0813c819d3b785178faa458486efa6992c636.

2013-09-11  Julian Brown  <julian@codesourcery.com>

	* Merge from OE git revision b0f8c47b1e808421f03308527beb8bde15644acd.

2013-07-18  Julian Brown  <julian@codesourcery.com>

	Backport from upstream:

	Andreas Schwab  <schwab@suse.de>

	* sysdeps/unix/sysv/linux/aarch64/configure.in: Set
	libc_cv_slibdir, libdir and libc_cv_localedir.
	* sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.

2013-07-18  Julian Brown  <julian@codesourcery.com>

	* sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c (__ieee754_sqrt):
	Rename to...
	(__slow_ieee754_sqrt): This.
	* sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c (__ieee754_sqrtf):
	Rename to...
	(__slow_ieee754_sqrtf): This.

2013-07-10  Julian Brown  <julian@codesourcery.com>

	* Revert multilib_readlib.patch.
