Russell King - ARM Linux Admin wrote:

> Benjamin Herrenschmidt writes:
> > So basically, for the bios to work in elf, (after fixing all the compile
> > and link problems, mostly due to missing includes and too many "_" in
> > some names like string.S stuffs), I made the following .lds file :
>
> Ok, thanks for the info.  There is now bios-1.01 on the FTP site, which
> has some of this stuff incorporated.  However, mkaif does not recognise
> ELF files yet.
>
> I wonder actually if objcopy can be used instead...

I dont have GLIBC, and u32 doesn't exists:

#ifdef __GLIBC__
typedef unsigned int u32;
#endif


bash# CROSS_COMPILE=arm-linux- make
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkaif
scripts/mkaif.c
scripts/mkaif.c:13: parse error before `u32'
scripts/mkaif.c:13: warning: no semicolon at end of struct or union
scripts/mkaif.c:14: warning: type defaults to `int' in declaration of
`a_text'
scripts/mkaif.c:14: warning: data definition has no type or storage class
scripts/mkaif.c:15: parse error before `a_data'
scripts/mkaif.c:15: warning: type defaults to `int' in declaration of
`a_data'
scripts/mkaif.c:15: warning: data definition has no type or storage class
scripts/mkaif.c:16: parse error before `a_bss'
scripts/mkaif.c:16: warning: type defaults to `int' in declaration of `a_bss'

scripts/mkaif.c:16: warning: data definition has no type or storage class
scripts/mkaif.c:17: parse error before `a_syms'
scripts/mkaif.c:17: warning: type defaults to `int' in declaration of
`a_syms'
scripts/mkaif.c:17: warning: data definition has no type or storage class
scripts/mkaif.c:18: parse error before `a_entry'
scripts/mkaif.c:18: warning: type defaults to `int' in declaration of
`a_entry'
scripts/mkaif.c:18: warning: data definition has no type or storage class
scripts/mkaif.c:19: parse error before `a_trsize'
scripts/mkaif.c:19: warning: type defaults to `int' in declaration of
`a_trsize'
scripts/mkaif.c:19: warning: data definition has no type or storage class
scripts/mkaif.c:20: parse error before `a_drsize'
scripts/mkaif.c:20: warning: type defaults to `int' in declaration of
`a_drsize'
scripts/mkaif.c:20: warning: data definition has no type or storage class
scripts/mkaif.c:35: parse error before `u32'
scripts/mkaif.c:35: warning: no semicolon at end of struct or union
scripts/mkaif.c:36: warning: type defaults to `int' in declaration of
`reloc_code'
scripts/mkaif.c:36: warning: data definition has no type or storage class
scripts/mkaif.c:37: parse error before `init_code'
scripts/mkaif.c:37: warning: type defaults to `int' in declaration of
`init_code'
scripts/mkaif.c:37: warning: data definition has no type or storage class
scripts/mkaif.c:38: parse error before `entry_code'

and so on....

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to