Date: Tue, 14 Jul 2009 21:19:13 +0000 (UTC) From: Alexander Kabaev <kan@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src Makefile.inc1 src/contrib/gcc/config freebsd-spec.h src/gnu/lib/libgcc Makefile src/gnu/lib/libssp/libssp_nonshared Makefile src/lib/libc Makefile src/lib/libc/sys Symbol.map stack_protector.c src/libexec/rtld-elf ... Message-ID: <200907142120.n6ELKC86053803@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kan 2009-07-14 21:19:13 UTC
FreeBSD src repository
Modified files:
. Makefile.inc1
contrib/gcc/config freebsd-spec.h
gnu/lib/libgcc Makefile
gnu/lib/libssp/libssp_nonshared Makefile
lib/libc Makefile
lib/libc/sys Symbol.map stack_protector.c
libexec/rtld-elf Makefile
share/mk bsd.lib.mk
Log:
SVN rev 195697 on 2009-07-14 21:19:13Z by kan
Second attempt at eliminating .text relocations in shared libraries
compiled with stack protector.
Use libssp_nonshared library to pull __stack_chk_fail_local symbol into
each library that needs it instead of pulling it from libc. GCC
generates local calls to this function which result in absolute
relocations put into position-independent code segment, making dynamic
loader do extra work every time given shared library is being relocated
and making affected text pages non-shareable.
Reviewed by: kib
Approved by: re (kib)
Revision Changes Path
1.628 +1 -1 src/Makefile.inc1
1.26 +1 -0 src/contrib/gcc/config/freebsd-spec.h
1.66 +6 -0 src/gnu/lib/libgcc/Makefile
1.4 +1 -1 src/gnu/lib/libssp/libssp_nonshared/Makefile
1.78 +1 -1 src/lib/libc/Makefile
1.28 +0 -1 src/lib/libc/sys/Symbol.map
1.5 +1 -6 src/lib/libc/sys/stack_protector.c
1.46 +1 -1 src/libexec/rtld-elf/Makefile
1.186 +2 -2 src/share/mk/bsd.lib.mk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907142120.n6ELKC86053803>
