From patchwork Thu May 11 15:56:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 761226 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wNyW40jW8z9s7j for ; Fri, 12 May 2017 02:00:32 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hFoojKFA"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wNyW32jrjzDqNm for ; Fri, 12 May 2017 02:00:31 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hFoojKFA"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wNyRF3q8NzDqLt for ; Fri, 12 May 2017 01:57:13 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hFoojKFA"; dkim-atps=neutral Received: by mail-pg0-x241.google.com with SMTP id u187so4041856pgb.1 for ; Thu, 11 May 2017 08:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5eH4xJJWe7LEA3UyIyLPCCk3OMt5WBthe/g7g0GTO0M=; b=hFoojKFAJXZVGJxOzwj92GCwb5KVcJLoOlVtFOqM0jaZAeN5ZNLqsXWIKQCx+aOtMC PnybSKkWgXjwehRhqcrl/lPUeE6cHFpEcd+txQ47pkSy/3w5MRV2uuBZpd0BuC2DkTVY 3oF3f3SZP+SjUgKOb4TxiLmxXbX/54X8ifGxwRu0cHoAk88Ic3qHtXvkwXvaVS+JOR82 TEYnS7pu9l3Dwk6GgaoE/D9N3LVzKZnkF0Q2YLO8NI32/V9uSbtjz3Q2DMDY1Wwf78Q6 6c8fEAQo7V779AvmPeDTZknddWwmzNaH932AtsziPSlF6CFJrsQZDa/IBfz8cZKC2IhZ sDQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5eH4xJJWe7LEA3UyIyLPCCk3OMt5WBthe/g7g0GTO0M=; b=p/lL2t9mzmlRadnfRZ2IeCjInAl+w5gL+/HVcgkuk78unLi5avFQ4lVdwsVX0+7BkJ 4ddzaYoF37dkLJgGMxy85O7XUp9tbgae9DsZgkh6EWUiyNLFOFrSpusVuPIbLCs1vDNw BxTrnCHUkh7/MAkJXfp2eoujTrmMorGTG28fWWIUBbVAAmmBQt/gj9Nr3e6m9cJ5B6I0 viDm7oM83cu0PR7lde7jcamRDsEP460a4bHr/UrhYciOLazjAYgjVrBpZBt7VaA2PXaS 9nWWwS+8R5BF/fh1g/I/UU84S+Zzk8zTdRflDrr5wYNWTQyU+nie8FcmIX5OyEhFsABV +4eQ== X-Gm-Message-State: AODbwcCjpQDMmtQy1y9c1SvXXWAU+DjrX5WC5wGFE35iEMhnDdpgQz50 2mlcTDUqvGdLyw== X-Received: by 10.84.178.131 with SMTP id z3mr1352384plb.175.1494518231959; Thu, 11 May 2017 08:57:11 -0700 (PDT) Received: from roar.au.ibm.com ([210.185.118.93]) by smtp.gmail.com with ESMTPSA id c7sm1194002pfk.103.2017.05.11.08.57.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 08:57:10 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/5] powerpc/64: place sfpr section explicitly with the linker script Date: Fri, 12 May 2017 01:56:48 +1000 Message-Id: <20170511155652.8287-2-npiggin@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170511155652.8287-1-npiggin@gmail.com> References: <20170511155652.8287-1-npiggin@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/vmlinux.lds.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 2f793be3d2b1..bcfda21c3179 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -115,6 +115,14 @@ SECTIONS KPROBES_TEXT IRQENTRY_TEXT SOFTIRQENTRY_TEXT + /* + * -Os builds call FP save/restore functions. The powerpc64 + * linker generates those on demand in the .sfpr section. + * .sfpr gets placed at the beginning of a group of input + * sections, which can break start-of-text offset if it is + * included with the main text sections, so put it by itself. + */ + *(.sfpr); MEM_KEEP(init.text) MEM_KEEP(exit.text)