From patchwork Fri Jun 18 15:03:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Bottomley X-Patchwork-Id: 106862 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5IF3VRM027200 for ; Fri, 18 Jun 2010 15:03:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933582Ab0FRPDb (ORCPT ); Fri, 18 Jun 2010 11:03:31 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:58225 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933496Ab0FRPDa (ORCPT ); Fri, 18 Jun 2010 11:03:30 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 354E68EE0F8 for ; Fri, 18 Jun 2010 08:03:30 -0700 (PDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eR8pkfNecArw for ; Fri, 18 Jun 2010 08:03:30 -0700 (PDT) Received: from [192.168.10.224] (newmulgrave.ext.hansenpartnership.com [192.168.10.224]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id B16068EE0E4 for ; Fri, 18 Jun 2010 08:03:29 -0700 (PDT) Subject: [RFC] fix the relative jump problem on large modules From: James Bottomley To: linux-parisc@vger.kernel.org Date: Fri, 18 Jun 2010 10:03:27 -0500 Message-ID: <1276873407.2850.35.camel@mulgrave.site> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 18 Jun 2010 15:03:31 +0000 (UTC) diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 55cca1d..ab88f11 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -21,6 +21,7 @@ KBUILD_DEFCONFIG := default_defconfig NM = sh $(srctree)/arch/parisc/nm CHECKFLAGS += -D__hppa__=1 +LDFLAGS_MODULE += -T $(srctree)/arch/parisc/kernel/module.lds MACHINE := $(shell uname -m) ifeq ($(MACHINE),parisc*) diff --git a/arch/parisc/kernel/module.lds b/arch/parisc/kernel/module.lds new file mode 100644 index 0000000..42ee3eb --- /dev/null +++ b/arch/parisc/kernel/module.lds @@ -0,0 +1,6 @@ +SECTIONS { + .text : { + /* Gather all function sections */ + *(.text.*) + } +}