Re: [RFC] ELF Relocatable x86 and x86_64 bzImages

Vivek Goyal
2006-08-01T20:40:59Z

On Tue, Aug 01, 2006 at 04:58:49AM -0600, Eric W. Biederman wrote:
>
> Currently there are 33 patches in my tree to do this.
>
> The weirdest symptom I have had so far is that page faults did not
> trigger the early exception handler on x86_64 (instead I got a reboot).
>
> There is one outstanding issue where I am probably requiring too much alignment
> on the arch/i386 kernel.
>
> Can anyone find anything else?
>

I am running into compilation failure on x86_64.

SYSMAP System.map
SYSMAP .tmp_System.map
AS arch/x86_64/boot/bootsect.o
In file included from include/asm/bitops.h:9,
from include/linux/bitops.h:10,
from include/linux/kernel.h:16,
from include/asm/system.h:5,
from include/asm/processor.h:19,
from include/asm/elf.h:11,
from include/linux/elf.h:8,
from arch/x86_64/boot/bootsect.S:20:
include/asm/alternative.h:73: error: syntax error in macro parameter list
include/asm/alternative.h:88: error: syntax error in macro parameter list
include/asm/alternative.h:127: error: syntax error in macro parameter list
In file included from include/asm/system.h:5,
from include/asm/processor.h:19,
from include/asm/elf.h:11,
from include/linux/elf.h:8,
from arch/x86_64/boot/bootsect.S:20:
include/linux/kernel.h:34: warning: "ALIGN" redefined
In file included from include/linux/kernel.h:12,
from include/asm/system.h:5,
from include/asm/processor.h:19,
from include/asm/elf.h:11,
from include/linux/elf.h:8,
from arch/x86_64/boot/bootsect.S:20:
include/linux/linkage.h:27: warning: this is the location of the previous definition
In file included from include/asm/system.h:5,
from include/asm/processor.h:19,
from include/asm/elf.h:11,
from include/linux/elf.h:8,
from arch/x86_64/boot/bootsect.S:20:
include/linux/kernel.h:216: error: syntax error in macro parameter list
include/linux/kernel.h:220: error: syntax error in macro parameter list
In file included from include/linux/sched.h:55,
from include/asm/compat.h:9,
from include/asm/elf.h:12,
from include/linux/elf.h:8,
from arch/x86_64/boot/bootsect.S:20:
include/linux/nodemask.h:229: error: detected recursion whilst expanding macro "find_first_bit"
include/linux/nodemask.h:235: error: detected recursion whilst expanding macro "find_next_bit"
include/linux/nodemask.h:254: error: detected recursion whilst expanding macro "find_first_zero_bit"
arch/x86_64/boot/bootsect.S:21: error: linux/elf_boot.h: No such file or directory
make[1]: *** [arch/x86_64/boot/bootsect.o] Error 1
make: *** [bzImage] Error 2

Thanks
Vivek