[PATCH] i386: Relocatable kernel support
[safe/jmp/linux-2.6] / arch / i386 / Makefile
index 0677908..d1aca52 100644 (file)
@@ -26,7 +26,9 @@ endif
 
 LDFLAGS                := -m elf_i386
 OBJCOPYFLAGS   := -O binary -R .note -R .comment -S
-LDFLAGS_vmlinux :=
+ifdef CONFIG_RELOCATABLE
+LDFLAGS_vmlinux := --emit-relocs
+endif
 CHECKFLAGS     += -D__i386__
 
 CFLAGS += -pipe -msoft-float