From owner-svn-src-head@FreeBSD.ORG Wed Feb 11 17:25:23 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA09658C; Wed, 11 Feb 2015 17:25:23 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C55E4E8B; Wed, 11 Feb 2015 17:25:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1BHPNeT013008; Wed, 11 Feb 2015 17:25:23 GMT (envelope-from tijl@FreeBSD.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1BHPNm1013007; Wed, 11 Feb 2015 17:25:23 GMT (envelope-from tijl@FreeBSD.org) Message-Id: <201502111725.t1BHPNm1013007@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: tijl set sender to tijl@FreeBSD.org using -f From: Tijl Coosemans Date: Wed, 11 Feb 2015 17:25:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278586 - head/contrib/binutils/ld/scripttempl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2015 17:25:24 -0000 Author: tijl Date: Wed Feb 11 17:25:23 2015 New Revision: 278586 URL: https://svnweb.freebsd.org/changeset/base/278586 Log: Fix ldscripts such that ld(1) collects the .fini_array section in the same order as the .init_array section. Finalisation routines need to be called in the opposite order as their corresponding initialisation routines but rtld(1) handles that by calling the function pointers in .fini_array in reverse order. Reviewed by: kib MFC after: 2 weeks Modified: head/contrib/binutils/ld/scripttempl/elf.sc Modified: head/contrib/binutils/ld/scripttempl/elf.sc ============================================================================== --- head/contrib/binutils/ld/scripttempl/elf.sc Wed Feb 11 17:00:32 2015 (r278585) +++ head/contrib/binutils/ld/scripttempl/elf.sc Wed Feb 11 17:25:23 2015 (r278586) @@ -402,8 +402,8 @@ cat <