From owner-cvs-src-old@FreeBSD.ORG Tue Jul 14 21:20:12 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 807EF106564A for ; Tue, 14 Jul 2009 21:20:12 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6A0AD8FC13 for ; Tue, 14 Jul 2009 21:20:12 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6ELKCnB053804 for ; Tue, 14 Jul 2009 21:20:12 GMT (envelope-from kan@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6ELKC86053803 for cvs-src-old@freebsd.org; Tue, 14 Jul 2009 21:20:12 GMT (envelope-from kan@repoman.freebsd.org) Message-Id: <200907142120.n6ELKC86053803@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kan@repoman.freebsd.org using -f From: Alexander Kabaev Date: Tue, 14 Jul 2009 21:19:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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 ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 21:20:12 -0000 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