public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Andrew Morton <akpm@osdl.org>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-ia64@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH -mm HOT-FIX] fix build on ia64 (modpost.c)
Date: Mon, 20 Feb 2006 20:25:00 +0100	[thread overview]
Message-ID: <20060220192500.GA17003@mars.ravnborg.org> (raw)
In-Reply-To: <20060220042615.5af1bddc.akpm@osdl.org>

> 
> - This kernel won't compile on ia64 (and possibly other architectures)
>   because the kbuild tree is using Elf_Rela in scripts/mod/modpost.c.  Is OK
>   on x86, x86_64 and powerpc.  Sam might send a hotfix?

Attached is a real hot-fix. It disables the new check entirely.

I like to learn:
1) Why IA64 is missing Elf64_Rela. Can someone drop me a copy of elf.h -
and include gcc + binutils version in the mail - thanks.

2) I also like to know if other architectures broke - so I can figure
out how to fix this.

I have tested this on X86_64/amd64 (gentoo based) only.

	Sam

	
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 844f84b..b87070a 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -451,6 +451,7 @@ static char *get_modinfo(void *modinfo, 
 	return NULL;
 }
 
+#if 0
 /**
  * Find symbol based on relocation record info.
  * In some cases the symbol supplied is a valid symbol so
@@ -616,7 +617,12 @@ static void check_sec_ref(struct module 
 		}
 	}
 }
-
+#endif
+static void check_sec_ref(struct module *mod, const char *modname,
+			  struct elf_info *elf,
+			  int section(const char*),
+			  int section_ref_ok(const char *))
+{}
 /**
  * Functions used only during module init is marked __init and is stored in
  * a .init.text section. Likewise data is marked __initdata and stored in

  parent reply	other threads:[~2006-02-20 19:25 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-20 12:26 2.6.16-rc4-mm1 Andrew Morton
2006-02-20 12:38 ` 2.6.16-rc4-mm1 Al Viro
2006-02-20 12:54   ` 2.6.16-rc4-mm1 Francesco Biscani
2006-02-20 12:40 ` 2.6.16-rc4-mm1 Reuben Farrelly
2006-02-20 19:36   ` [PATCH] remove ccache from top level Makefile and make configurable Andy Whitcroft
2006-02-20 21:39     ` Christopher Friesen
2006-02-21 18:39       ` Andy Whitcroft
2006-02-20 20:15   ` 2.6.16-rc4-mm1 Al Viro
2006-02-21  0:53     ` 2.6.16-rc4-mm1 Andrew Morton
2006-02-21  4:40       ` 2.6.16-rc4-mm1 Al Viro
2006-02-21  7:59       ` 2.6.16-rc4-mm1 Arjan van de Ven
2006-02-20 13:02 ` 2.6.16-rc4-mm1 Reuben Farrelly
2006-02-20 14:11   ` 2.6.16-rc4-mm1 Patrick McHardy
2006-02-20 14:20     ` 2.6.16-rc4-mm1 Arnaldo Carvalho de Melo
2006-02-20 20:04     ` 2.6.16-rc4-mm1 Carl-Daniel Hailfinger
2006-02-20 20:56       ` 2.6.16-rc4-mm1 Arnaldo Carvalho de Melo
2006-02-20 21:09         ` 2.6.16-rc4-mm1 Adrian Bunk
2006-02-20 20:44     ` 2.6.16-rc4-mm1 Adrian Bunk
2006-02-21  1:17       ` 2.6.16-rc4-mm1 Patrick McHardy
2006-02-21  2:00         ` 2.6.16-rc4-mm1 Adrian Bunk
2006-02-20 14:37 ` 2.6.16-rc4-mm1: usbfs2 multiply defined symbols Adrian Bunk
2006-02-20 17:33   ` [linux-usb-devel] " Greg KH
2006-02-20 15:07 ` 2.6.16-rc4-mm1 kernel crash at bootup. parport trouble? Helge Hafting
2006-02-20 15:25   ` MIke Galbraith
2006-02-20 20:41     ` Andrew Morton
2006-02-20 23:36       ` Rafael J. Wysocki
2006-02-20 23:40         ` Andrew Morton
2006-02-21  0:02           ` Rafael J. Wysocki
2006-02-21  0:09             ` Andrew Morton
2006-02-21  0:20               ` Rafael J. Wysocki
2006-02-22 11:44             ` Rafael J. Wysocki
2006-02-22 11:56               ` Andrew Morton
2006-02-22 18:19                 ` Rafael J. Wysocki
2006-02-20 22:58     ` Rafael J. Wysocki
     [not found] ` <6bffcb0e0602200533p1a3da98ew@mail.gmail.com>
2006-02-20 16:33   ` 2.6.16-rc4-mm1 Greg KH
2006-02-20 17:54 ` 2.6.16-rc4-mm1 Bernhard Rosenkraenzer
2006-02-20 19:25 ` Sam Ravnborg [this message]
2006-02-20 21:37   ` [PATCH -mm HOT-FIX] fix build on ia64 (modpost.c) Andrew Morton
2006-02-21  8:14 ` 2.6.16-rc4-mm1 Laurent Riffard
2006-02-21  8:16   ` 2.6.16-rc4-mm1 Andrew Morton
2006-02-21 19:00 ` 2.6.16-rc4-mm1 console (radeonfb) not resumed after s2ram Mattia Dongili
2006-02-21 21:43   ` Andrew Morton
2006-02-22 14:24     ` Mattia Dongili
2006-02-22 19:39       ` Mattia Dongili
2006-02-22 20:40         ` Andrew Morton
2006-02-22 13:47 ` 2.6.16-rc4-mm1 Alexander E. Patrakov
2006-02-22 15:26   ` 2.6.16-rc4-mm1 Alexander E. Patrakov
2006-02-23 12:10     ` 2.6.16-rc4-mm1 Alan Cox
2006-02-23 13:02       ` 2.6.16-rc4-mm1 Thierry Vignaud
2006-02-23 15:19         ` 2.6.16-rc4-mm1 Alan Cox
2006-02-22 15:36   ` 2.6.16-rc4-mm1 Randy.Dunlap
2006-02-23  6:53   ` 2.6.16-rc4-mm1 Randy.Dunlap
2006-02-23  9:11     ` 2.6.16-rc4-mm1 Alexander E. Patrakov
2006-02-23 15:27       ` 2.6.16-rc4-mm1 Randy.Dunlap
2006-02-23 18:21     ` zcat: stdin: decompression OK (was: Re: 2.6.16-rc4-mm1) Alexey Dobriyan
2006-02-24  4:18       ` Randy.Dunlap
2006-02-24  4:51       ` zcat: stdin: decompression OK Alexander E. Patrakov
2006-02-27  1:59         ` Randy.Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060220192500.GA17003@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=akpm@osdl.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox