Commit 79a54256 authored by Linus Torvalds's avatar Linus Torvalds

Merge http://linux-isdn.bkbits.net/linux-2.5.make

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 3e1d2624 98e9e854
...@@ -18,7 +18,7 @@ modpost-objs := modpost.o file2alias.o ...@@ -18,7 +18,7 @@ modpost-objs := modpost.o file2alias.o
subdir- := lxdialog kconfig subdir- := lxdialog kconfig
# fixdep is needed to compile other host programs # fixdep is needed to compile other host programs
$(addprefix $(obj)/,$(filter-out fixdep,$(host-progs))): $(obj)/fixdep $(addprefix $(obj)/,$(filter-out fixdep,$(build-targets))): $(obj)/fixdep
# dependencies on generated files need to be listed explicitly # dependencies on generated files need to be listed explicitly
......
...@@ -9,7 +9,7 @@ include scripts/Makefile.lib ...@@ -9,7 +9,7 @@ include scripts/Makefile.lib
# #
__modules := $(shell cd $(MODVERDIR); cat *.mod) __modules := $(shell cat /dev/null $(wildcard $(MODVERDIR)/*.mod))
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o))) modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
ifneq ($(filter-out $(modules),$(__modules)),) ifneq ($(filter-out $(modules),$(__modules)),)
...@@ -22,7 +22,7 @@ __modinst: $(modules) ...@@ -22,7 +22,7 @@ __modinst: $(modules)
# Modules built within the kernel tree # Modules built within the kernel tree
quiet_cmd_modules_install = INSTALL $(obj-m:.o=.ko) quiet_cmd_modules_install = INSTALL $@
cmd_modules_install = mkdir -p $(MODLIB)/kernel/$(@D); \ cmd_modules_install = mkdir -p $(MODLIB)/kernel/$(@D); \
cp $@ $(MODLIB)/kernel/$(@D) cp $@ $(MODLIB)/kernel/$(@D)
......
...@@ -270,6 +270,7 @@ handle_modversions(struct module *mod, struct elf_info *info, ...@@ -270,6 +270,7 @@ handle_modversions(struct module *mod, struct elf_info *info,
Elf_Sym *sym, const char *symname) Elf_Sym *sym, const char *symname)
{ {
struct symbol *s; struct symbol *s;
unsigned int crc;
switch (sym->st_shndx) { switch (sym->st_shndx) {
case SHN_COMMON: case SHN_COMMON:
...@@ -279,7 +280,8 @@ handle_modversions(struct module *mod, struct elf_info *info, ...@@ -279,7 +280,8 @@ handle_modversions(struct module *mod, struct elf_info *info,
case SHN_ABS: case SHN_ABS:
/* CRC'd symbol */ /* CRC'd symbol */
if (memcmp(symname, "__crc_", 6) == 0) { if (memcmp(symname, "__crc_", 6) == 0) {
add_exported_symbol(symname+6, mod, &sym->st_value); crc = (unsigned int) sym->st_value;
add_exported_symbol(symname+6, mod, &crc);
modversions = 1; modversions = 1;
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment