trampoline

Olivier Houchard mlfbsd at ci0.org
Mon Oct 30 23:22:59 UTC 2006


On Mon, Oct 30, 2006 at 12:27:32PM -0800, David Sharp wrote:
> 
> when doing a 'make trampoline' i get the errors:
> 
> 
> cc -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.arm.tramp  ../../../arm/arm/elf_trampoline.c ../../../arm/arm/inckern.S ../../../arm/arm/cpufunc_asm_arm7tdmi.S  ../../../arm/arm/cpufunc_asm_arm8.S ../../../arm/arm/cpufunc_asm_arm9.S  ../../../arm/arm/cpufunc_asm_sa1.S ../../../arm/arm/cpufunc_asm_arm10.S  ../../../arm/arm/cpufunc_asm_xscale.S ../../../arm/arm/cpufunc_asm.S  -o kernel.tramp
> In file included from /usr/obj/arm/usr/src/tmp/usr/include/sys/elf32.h:32,
>                  from ../../../arm/arm/elf_trampoline.c:28:
> /usr/obj/arm/usr/src/tmp/usr/include/sys/elf_common.h:46: error: syntax error before "u_int32_t"
> In file included from ../../../arm/arm/elf_trampoline.c:28:
> /usr/obj/arm/usr/src/tmp/usr/include/sys/elf32.h:38: error: syntax error before "Elf32_Addr"
> /usr/obj/arm/usr/src/tmp/usr/include/sys/elf32.h:39: error: syntax error before 
> 
> 
> 
> adding #include <sys/types.h> toward the top of sys/arm/arm/elf_trampoline.c
> fixes it.  someone with a commit bit may want to fix this.
> 
> david.
> 

Oops, we must have depended on namespace pollution.
Thanks for reporting !

Olivier


More information about the freebsd-arm mailing list