From patchwork Sun Jul 9 20:50:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9832033 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 A047C602BD for ; Sun, 9 Jul 2017 20:50:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8864D2654B for ; Sun, 9 Jul 2017 20:50:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7792E26E97; Sun, 9 Jul 2017 20:50:54 +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=-6.4 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 103A92654B for ; Sun, 9 Jul 2017 20:50:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752620AbdGIUux (ORCPT ); Sun, 9 Jul 2017 16:50:53 -0400 Received: from mout.gmx.net ([212.227.15.18]:55862 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600AbdGIUuw (ORCPT ); Sun, 9 Jul 2017 16:50:52 -0400 Received: from p100.box ([193.159.21.5]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MAQ0o-1dNCPp33c2-00Bc71; Sun, 09 Jul 2017 22:50:43 +0200 Date: Sun, 9 Jul 2017 22:50:40 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Merge millicode routines via linker script Message-ID: <20170709205040.GA29038@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:L+4v2a84fDVL7ZLvNiLRSq29PNxxIyAtOh7X3rfba2OFSFjLXsP 1taEH42zHAJWM0TO5f4LOAjZDvD9i906EgoN+SNt2vlgyg7RPk44hJGktEK25kLZptX+tR4 ZbPFzJiCEhFvAYX5uhU3tdG9kCjEM9o/cgJexhAc/4j5gTZ7OKclEwmPkCGMZWNvEQFC52F WKkrAe+BSK+3/vGER15kA== X-UI-Out-Filterresults: notjunk:1; V01:K0:5oXSqd0M24M=:JBDQmA4MMHy7GYdtkSLdDy UI2ObfxauTuaMcIi497j2ELZ2Zi9YHxK4Vzw0koLpYTl0JV7bAx1G93vZF/iiX6w2SM/5t3FJ oJMrxqySI7nGe5rImCRUI78u4qcFrLUj8FafUP+C9oYRDAHbKphez6mr9CIVtGgIeWtjYQM54 VvY/YH43ZGg9S4GQRreLLyeyxQ/780SH/0cVfIcPtFb+Hjb4BxzrQyhPDgWsquNdj7PFeEX02 WE7xzkfu4DfaxvOYhdHZ7USlihH3Jwctrpnscq7FxQy2TMA1zD9u/33OAQetBOBar1eHgZMOG fJwyNG//KrMxQf4M7HE+23/pATxrRt2d6YvHVuALOsotI6Z0z/UJRe9gpbomqoBFnbYk5JKji Q3zC60gkJzDwcZUknFmtm0+yqflWbcgWT8aes9Y7FIGuMeXkepHSt9bViO7RiFB0idlmwvO+a mFXbOgPJAFDOmis1CT0rCrKF6acHYhLSffCHZ5xLwIosfi9f5lFWDagrdIOMryfLp1k7rzfv5 Ihq/k/EFa6p7qZVQY2PF27pv13MMBfVBJxnPCI9Sj+Dh8PVhFV7mV9DdueOFmqQUl5LNBCqkt t2gcY1HlrmHKapUJ6Z1NGoJMgq/zdkGOn0tIOLenmgcunlWNucSqOQXspeTa88f+C9ds6d16J 1ATqlONtxhdRQfSA/eY0pgzNsZTOeHzHeyfGAgaGd7jExm6t+FEcKJgJ7/dN8gfli6CWkhI23 QI3R9QzANouZg0l5jH19cdY79BmszIxLMt1kRMHVBpvUmVz6APRTLIK690I= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When compiling the 4.13-rc kernel I got those linker errors: libgcc2.c:(.text+0x110): relocation truncated to fit: R_PARISC_PCREL22F against symbol `$$divU' defined in .text.div section in /usr/lib/gcc/hppa64-linux-gnu/4.9.2/libgcc.a(_divU.o) hppa64-linux-gnu-ld: /usr/lib/gcc/hppa64-linux-gnu/4.9.2/libgcc.a(_moddi3.o)(.text+0x174): cannot reach $$divU Avoid such errors by bundling the millicode routines in the linker script. Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index 3d6ef1b..ffe2cbf 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S @@ -78,6 +78,8 @@ SECTIONS *(.text.sys_exit) *(.text.do_sigaltstack) *(.text.do_fork) + *(.text.div) + *($$*) /* millicode routines */ *(.text.*) *(.fixup) *(.lock.text) /* out-of-line lock text */