Commit 1bb4996bcebca1cde49d964b4e012699ce180e61

Authored by Andi Kleen
Committed by Andi Kleen
1 parent dbf9272e86

[PATCH] Move compiler check for modules to ia64 only

Apparently IA64 needs it, but i386/x86-64 don't anymore
since gcc 2.95 support was dropped.  Nobody else on linux-arch
requested keeping it generically

Cc: tony.luck@intel.com
Cc: kaos@sgi.com

Signed-off-by: Andi Kleen <ak@suse.de>

Showing 2 changed files with 4 additions and 3 deletions Side-by-side Diff

include/asm-ia64/module.h
... ... @@ -28,7 +28,8 @@
28 28 #define Elf_Ehdr Elf64_Ehdr
29 29  
30 30 #define MODULE_PROC_FAMILY "ia64"
31   -#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
  31 +#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY \
  32 + "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)
32 33  
33 34 #define ARCH_SHF_SMALL SHF_IA_64_SHORT
34 35  
include/linux/vermagic.h
... ... @@ -24,6 +24,5 @@
24 24 #define VERMAGIC_STRING \
25 25 UTS_RELEASE " " \
26 26 MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \
27   - MODULE_VERMAGIC_MODULE_UNLOAD MODULE_ARCH_VERMAGIC \
28   - "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)
  27 + MODULE_VERMAGIC_MODULE_UNLOAD MODULE_ARCH_VERMAGIC