1 |
On Thu, 2 Feb 2006, Ed W wrote: |
2 |
|
3 |
> I am trying to get Xen running under a hardened kernel. The machine is |
4 |
> currently booted with "selinux=1 enforcing=0". I am having trouble |
5 |
> compiling: |
6 |
|
7 |
the CFLAGS miss (at least) -DKERNEL |
8 |
> |
9 |
> |
10 |
> gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
11 |
> -Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -D__ASSEMBLY__ |
12 |
> -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -c trap.S |
13 |
> gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
14 |
> -Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -c vm86.c |
15 |
> gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
16 |
> -Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -c setup.c |
17 |
> gcc -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 -I. -I../../../tools/libxc |
18 |
> -Wall -fno-builtin -O2 -msoft-float -m32 -march=i686 -c util.c |
19 |
> cpp -P -DDEBUG -D_ACPI_ -DTEXTADDR=0x000D0000 vmxassist.ld > vmxassist.tmp |
20 |
> ld -o vmxassist -m elf_i386 -nostdlib --fatal-warnings -N -T |
21 |
> vmxassist.tmp head.o trap.o vm86.o setup.o util.o |
22 |
> vm86.o: In function `address': |
23 |
> vm86.c:(.text+0x19): undefined reference to `__guard' |
24 |
> vm86.c:(.text+0x56): undefined reference to `__stack_smash_handler' |
25 |
> vm86.o: In function `trace': |
26 |
> vm86.c:(.text+0xe9): undefined reference to `__guard' |
27 |
> vm86.c:(.text+0x141): undefined reference to `__guard' |
28 |
> vm86.c:(.text+0x15d): undefined reference to `__stack_smash_handler' |
29 |
> vm86.o: In function `getreg': |
30 |
> vm86.c:(.text+0x278): undefined reference to `__guard' |
31 |
> vm86.o: In function `.L23': |
32 |
> ...etc... |
33 |
> |
34 |
> |
35 |
> I have tried various combinations of compiler using gcc-config. Neither |
36 |
> gcc-3.4.4 or gcc-3.3.6 seem to do any better, hardened or not |
37 |
> |
38 |
> I suspect that this could be a problem with the compiler still using |
39 |
> some hardend profile despite me asking for a non-hardened gcc? Can |
40 |
> anyone please help debug this |
41 |
> |
42 |
> Ed W |
43 |
> |
44 |
|
45 |
-- |
46 |
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2 |
47 |
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 |
48 |
|
49 |
-- |
50 |
gentoo-hardened@g.o mailing list |