glibc/ports
Will Newton b7f2d27dbd ARM: Add pointer encryption support.
Add support for pointer encryption in glibc internal structures in C
and assembler code. Pointer encryption is a glibc security feature
described here:

https://sourceware.org/glibc/wiki/PointerEncryption

The ARM implementation uses global variables instead of thread pointer
relative accesses to get the value of the pointer encryption guard
because accessing the thread pointer can be very expensive on older
ARM cores.

ports/ChangeLog.arm:

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

	* sysdeps/arm/__longjmp.S (__longjmp): Demangle fp, sp
	and lr when restoring register values.
	* sysdeps/arm/include/bits/setjmp.h (JMP_BUF_REGLIST): Remove
	sp and lr from list and replace fp with a4.
	* sysdeps/arm/jmpbuf-unwind.h (_jmpbuf_sp): New function.
	(_JMPBUF_UNWINDS_ADJ): Call _jmpbuf_sp.
	* sysdeps/arm/setjmp.S (__sigsetjmp): Mangle fp, sp and lr
	before storing register values.
	* sysdeps/arm/sysdep.h (LDST_GLOBAL): New macro.
	* sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE): New macro.
	(PTR_DEMANGLE): Likewise. (PTR_MANGLE2): Likewise.
	(PTR_DEMANGLE2): Likewise.
2013-10-03 11:35:50 +01:00
..
sysdeps ARM: Add pointer encryption support. 2013-10-03 11:35:50 +01:00
ChangeLog hppa: add fanotify_mark 2013-09-02 23:22:24 -04:00
ChangeLog.aarch64 [AArch64] Fix BE access to errno. 2013-09-30 10:58:26 +01:00
ChangeLog.aix Move all files into ports/ subdirectory in preparation for merge with glibc 2012-07-01 13:06:41 +00:00
ChangeLog.alpha alpha: Improve conditions under which PTR_MANGLE is defined 2013-10-01 12:27:02 -07:00
ChangeLog.am33 Fix typos. 2013-08-29 09:11:45 +02:00
ChangeLog.arm ARM: Add pointer encryption support. 2013-10-03 11:35:50 +01:00
ChangeLog.cris Move all files into ports/ subdirectory in preparation for merge with glibc 2012-07-01 13:06:41 +00:00
ChangeLog.hppa Add O_TMPFILE to <fcntl.h> 2013-09-11 11:52:46 +02:00
ChangeLog.ia64 BZ #15754: CVE-2013-4788 2013-09-23 00:52:09 -04:00
ChangeLog.linux-generic Remove trailing whitespace in ports. 2013-06-05 20:26:40 +00:00
ChangeLog.m68k Make __ffs hidden 2013-09-20 21:25:31 +02:00
ChangeLog.microblaze New API to set default thread attributes 2013-06-15 12:24:15 +05:30
ChangeLog.mips 2013-09-23 Steve Ellcey <sellcey@mips.com> 2013-09-23 09:58:30 -07:00
ChangeLog.powerpc Fix typos. 2013-08-30 18:08:59 +02:00
ChangeLog.tile BZ #15754: CVE-2013-4788 2013-09-23 00:52:09 -04:00
README Update miscellaneous copyright dates. 2013-01-02 19:43:40 +00:00

This is the glibc ports add-on, an add-on for the GNU C Library (glibc).
It contains code that is not maintained in the official glibc source tree.

This includes working ports to GNU/Linux on some machine architectures that
are not maintained in the official glibc source tree.  It also includes
some code once used by old libc ports now defunct, which has been abandoned
but may be useful for some future porter to examine.  It may also include
some optimized functions tailored for specific CPU implementations of an
architecture, to be selected using --with-cpu.

The ports add-on is cooperatively maintained by volunteers on the
<libc-ports@sourceware.org> mailing list, and housed in the ports
subdirectory of the glibc git repository.  See
http://www.gnu.org/software/libc/download.html for details on using
git.  To report a bug in code housed in the ports add-on, please go to
http://sourceware.org/bugzilla/ and file a bug report under the glibc
"ports" component.

An add-on for an individual port can be made from just the sysdeps/
subdirectories containing the port's code.  You may want to include a
README and Banner of your own talking about your port's code in particular,
rather than the generic ones here.

The real source code for any ports is found in the sysdeps/ subdirectories.
These should be exactly what would go into the main libc source tree if you
were to incorporate it directly.  The only exceptions are the files
sysdeps/*/preconfigure and sysdeps/*/preconfigure.in; these are fragments
used by this add-on's configure fragment.  The purpose of these is to set
$base_machine et al when the main libc configure's defaults are not right
for some machine.  Everything else can and should be done from a normal
sysdeps/.../configure fragment that is used only when the configuration
selects that sysdeps subdirectory.  Each port that requires some special
treatment before the sysdeps directory list is calculated, should add a
sysdeps/CPU/preconfigure file; this can either be written by hand or
generated by Autoconf from sysdeps/CPU/preconfigure.in, and follow the
rules for glibc add-on configure fragments.  No preconfigure file should do
anything on an unrelated configuration, so that disparate ports can be put
into a single add-on without interfering with each other.

Like all glibc add-ons, this must be used by specifying the directory in
the --enable-add-ons option when running glibc's configure script.

The GNU C Library is free software.  See the file COPYING.LIB in the
libc repository 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., 2000-2013, indicating that every year in the range,
inclusive, is a copyrightable year that would otherwise be listed
individually.