From patchwork Tue Sep 6 12:41:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9316603 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2411060752 for ; Tue, 6 Sep 2016 12:43:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14D14286D7 for ; Tue, 6 Sep 2016 12:43:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 094E728D0F; Tue, 6 Sep 2016 12:43:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6CC6A286D7 for ; Tue, 6 Sep 2016 12:43:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhFgl-0003E2-GY; Tue, 06 Sep 2016 12:41:19 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhFgk-0003Ce-3t for xen-devel@lists.xenproject.org; Tue, 06 Sep 2016 12:41:18 +0000 Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id 70/E6-16745-D69BEC75; Tue, 06 Sep 2016 12:41:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHSDvW7OznP hBpffS1t83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBkNx/azFsziqph8uqCBcQ5HFyMnh4SAv8TJ 30vYQWw2AWWJn529bCC2iICeRNOB54xdjFwczAIHGSW+rrnPBJIQFnCXaOqazApiswioSCw78 ZgZxOYVcJZo+dXBCDFUTuL88Z9gcU4BF4kzDd1gvUJANRtfzWWBsBUkOqYfY4LoFZQ4OfMJWJ xZQELi4IsXzBBzuCVun57KPIGRbxaSsllIyhYwMq1iVC9OLSpLLdK11EsqykzPKMlNzMzRNTQ w1ctNLS5OTE/NSUwq1kvOz93ECAwpBiDYwbi21fkQoyQHk5Ior1rguXAhvqT8lMqMxOKM+KLS nNTiQ4wyHBxKEryMO4BygkWp6akVaZk5wOCGSUtw8CiJ8HqApHmLCxJzizPTIVKnGBWlxHkPb wdKCIAkMkrz4NpgEXWJUVZKmJcR6BAhnoLUotzMElT5V4ziHIxKwrzSION5MvNK4Ka/AlrMBL R43e7TIItLEhFSUg2Mgkrmrp76UxNqtGpnXU02EGg9c3pj9nmxGRmfV2WcSTaQmWv7IDRCWem uc5+Fm6VY6LTupvnHm2arJtoxL5qwMv9e0CO50MvOzIlHAqf+Wr0jNO7KukeWj98+7v3idSBw GUeRb1u/v3RY+cQH1cePHeu/9DdGiYdDmSEsetXqn08OMld+k1+jxFKckWioxVxUnAgAP0E6t 6MCAAA= X-Env-Sender: prvs=05013ac0f=wei.liu2@citrix.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1473165674!58135864!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 58273 invoked from network); 6 Sep 2016 12:41:16 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-4.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 6 Sep 2016 12:41:16 -0000 X-IronPort-AV: E=Sophos;i="5.30,291,1470700800"; d="scan'208";a="384557529" From: Wei Liu To: Xen-devel Date: Tue, 6 Sep 2016 13:41:05 +0100 Message-ID: <1473165667-25707-3-git-send-email-wei.liu2@citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1473165667-25707-1-git-send-email-wei.liu2@citrix.com> References: <1473165667-25707-1-git-send-email-wei.liu2@citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Andrew Cooper , Julien Grall , Stefano Stabellini , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH v2 2/4] gcov: collect more sections to constructor list X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The version of gcc (4.9.2) I use put constructors into .init_array* section(s). Collect those sections into constructor list as well. Modify both arm and x86 scripts to keep them in sync. Signed-off-by: Wei Liu Acked-by: Julien Grall Acked-by: Jan Beulich --- v2: move .init_arry before .init_array.* Cc: Stefano Stabellini Cc: Julien Grall Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/arm/xen.lds.S | 2 ++ xen/arch/x86/xen.lds.S | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S index b24e93b..3c5e7ba 100644 --- a/xen/arch/arm/xen.lds.S +++ b/xen/arch/arm/xen.lds.S @@ -166,7 +166,9 @@ SECTIONS . = ALIGN(8); __ctors_start = .; + *(.ctors) *(.init_array) + *(SORT(.init_array.*)) __ctors_end = .; } :text __init_end_efi = .; diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 67cfda1..d903c31 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -205,6 +205,8 @@ SECTIONS . = ALIGN(8); __ctors_start = .; *(.ctors) + *(.init_array) + *(SORT(.init_array.*)) __ctors_end = .; } :text