public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm HOT-FIX] fix build on ia64 (modpost.c)
       [not found] <20060220042615.5af1bddc.akpm@osdl.org>
@ 2006-02-20 19:25 ` Sam Ravnborg
  2006-02-20 21:37   ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Ravnborg @ 2006-02-20 19:25 UTC (permalink / raw)
  To: Andrew Morton, LKML, linux-ia64; +Cc: linux-kernel

> 
> - 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -mm HOT-FIX] fix build on ia64 (modpost.c)
  2006-02-20 19:25 ` [PATCH -mm HOT-FIX] fix build on ia64 (modpost.c) Sam Ravnborg
@ 2006-02-20 21:37   ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2006-02-20 21:37 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel, linux-ia64, Ingo Molnar

Sam Ravnborg <sam@ravnborg.org> wrote:
>
> > 
> > - 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.

Well that bit compiles.

> 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.

This thing's running RHAS2.1 which I think dates from before the invention
of the transistor.  Running home-made gcc-3.3.2 and binutils-2.14.90.0.6-1.

I'll send along the three elf.h's under /usr/include.

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

Dunno yet - I didn't do the normal batch of cross-compiles due to spending
six hours chasing down new bugs.

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

That fixes the modpost.c compile, but the new futex stuff fails because
ia64 doesn't implement ptr_to_compat().  In fact only three architectures
appear to do so.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-20 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060220042615.5af1bddc.akpm@osdl.org>
2006-02-20 19:25 ` [PATCH -mm HOT-FIX] fix build on ia64 (modpost.c) Sam Ravnborg
2006-02-20 21:37   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox