1 |
I am trying to get Xen running under a hardened kernel. The machine is |
2 |
currently booted with "selinux=1 enforcing=0". I am having trouble |
3 |
compiling: |
4 |
|
5 |
|
6 |
gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
7 |
-Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -D__ASSEMBLY__ |
8 |
-DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -c trap.S |
9 |
gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
10 |
-Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -c vm86.c |
11 |
gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
12 |
-Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -c setup.c |
13 |
gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
14 |
-Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -c util.c |
15 |
cpp -P -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 vmxassist.ld > vmxassist.tmp |
16 |
ld -o vmxassist -m elf_i386 -nostdlib --fatal-warnings -N -T |
17 |
vmxassist.tmp head.o trap.o vm86.o setup.o util.o |
18 |
vm86.o: In function `address': |
19 |
vm86.c:(.text+0x19): undefined reference to `__guard' |
20 |
vm86.c:(.text+0x56): undefined reference to `__stack_smash_handler' |
21 |
vm86.o: In function `trace': |
22 |
vm86.c:(.text+0xe9): undefined reference to `__guard' |
23 |
vm86.c:(.text+0x141): undefined reference to `__guard' |
24 |
vm86.c:(.text+0x15d): undefined reference to `__stack_smash_handler' |
25 |
vm86.o: In function `getreg': |
26 |
vm86.c:(.text+0x278): undefined reference to `__guard' |
27 |
vm86.o: In function `.L23': |
28 |
...etc... |
29 |
|
30 |
|
31 |
I have tried various combinations of compiler using gcc-config. Neither |
32 |
gcc-3.4.4 or gcc-3.3.6 seem to do any better, hardened or not |
33 |
|
34 |
I suspect that this could be a problem with the compiler still using |
35 |
some hardend profile despite me asking for a non-hardened gcc? Can |
36 |
anyone please help debug this |
37 |
|
38 |
Ed W |
39 |
-- |
40 |
gentoo-hardened@g.o mailing list |