FW: procedure for building rtems-4.5.0beta2
Mike Davies
mikert at noco.demon.co.uk
Thu May 4 10:16:43 UTC 2000
In message <20000504022823.16486.qmail at web612.mail.yahoo.com>, m ds
<mdsdm at yahoo.com> writes
>Mike,
>
>It seems, from other's previous messages, that the
>latest beta doesn't work correctly with cygwin. I'm
>not sure on how to fix that, but the test of the cross
>compiler you did, isn't exactly bare-bones. A simpler
>test, like in the old "Getting Started" guide, might
>be better. It doesn't test the linker though:
>
>--cut here------
>int f (int i)
>{
> return (i+1);
>}
>--end cut--------
>
>then assemble (extremely verbosely) with:
>i386-rtems-gcc -c -v -Q -o f.o f.c
>
>Hope this helps somewhat,
>
>Matt
Hi,
I tried the little function that you suggested, and it
seems to work (I took an object dump of the resulting
object file and put it at the end of the compiler output).
I tried the command "./bit_rtems i386 pc386" again with the problem
result as before (compiler can't produce executables !) :-(
Does anybody have a fix for the latest beta under Cygwin ?
Thanks for your help
bash-2.02$ i386-rtems-gcc -c -v -Q -o f.o f.c
Reading specs from /home/mike/rtems-4.5.0-beta2/install/lib/gcc-
lib/i386-rtems/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/home/mike/rtems-4.5.0-beta2/install/lib/gcc-
lib/i386-rtems/2.95.2/cpp.exe -lan
g-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Di386 -Drtems -D__rtems__ -
D__i386__ -D
__rtems__ -D__rtems__ -D__i386 -D__rtems -Asystem(rtems) -Acpu(i386) -
Amachine(i
386) f.c C:\TEMP/ccqExu13.i
GNU CPP version 2.95.2 19991024 (release) (i386 RTEMS with ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/mike/rtems-4.5.0-beta2/install/lib/gcc-
lib/i386-rtems/2.95.2/include
/home/mike/rtems-4.5.0-beta2/install/lib/gcc-lib/i386-rtems/2.95.2/../.
./../../i386-rtems/include
End of search list.
The following default directories have been omitted from the search
path:
/home/mike/rtems-4.5.0-beta2/install/lib/gcc-lib/i386-rtems/2.95.2/../.
./../../include/g++-3
/home/mike/rtems-4.5.0-beta2/install/lib/gcc-lib/i386-rtems/2.95.2/../.
./../../i386-rtems/sys-include
End of omitted list.
/home/mike/rtems-4.5.0-beta2/install/lib/gcc-
lib/i386-rtems/2.95.2/cc1.exe C:\T
EMP/ccqExu13.i -dumpbase f.c -version -o C:\TEMP/cc86CZu1.s
GNU C version 2.95.2 19991024 (release) (i386-rtems) compiled by GNU C
version 2
.95.2 19991024 (release).
options passed:
options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
-fpcc-struct-return -fcommon -fgnu-linker -fargument-alias -fident -
m80387
-mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387 -mschedule-
prologue
-mcpu=i386 -march=pentium
f
time in parse: 0.000000
time in integration: 0.000000
time in jump: 0.000000
time in cse: 0.000000
time in gcse: 0.000000
time in loop: 0.000000
time in cse2: 0.000000
time in branch-prob: 0.000000
time in flow: 0.000000
time in combine: 0.000000
time in regmove: 0.000000
time in sched: 0.000000
time in local-alloc: 0.000000
time in global-alloc: 0.000000
time in flow2: 0.000000
time in sched2: 0.000000
time in shorten-branch: 0.000000
time in stack-reg: 0.000000
time in final: 0.000000
time in varconst: 0.000000
time in symout: 0.000000
time in dump: 0.000000
/home/mike/rtems-4.5.0-beta2/install/i386-rtems/bin/as.exe -V -Qy -o
f.o C:\TEMP/cc86CZu1.s
GNU assembler version 2.9.5 (i386-rtems) using BFD version 2.9.5.0.24
bash-2.02$
bash-2.02$ i386-rtems-objdump -afpxd f.o
f.o: file format elf32-i386
f.o
architecture: i386, flags 0x00000010:
HAS_SYMS
start address 0x00000000
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 0000000e 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000000 00000000 00000000 00000044 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000044 2**2
ALLOC
3 .note 00000014 00000000 00000000 00000044 2**0
CONTENTS, READONLY
4 .comment 00000026 00000000 00000000 00000058 2**0
CONTENTS, READONLY
SYMBOL TABLE:
00000000 l df *ABS* 00000000 f.c
00000000 l d .text 00000000
00000000 l d .data 00000000
00000000 l d .bss 00000000
00000000 l .text 00000000 gcc2_compiled.
00000000 l d .note 00000000
00000000 l d .comment 00000000
00000000 g F .text 0000000e f
Disassembly of section .text:
00000000 <f>:
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 8b 55 08 mov 0x8(%ebp),%edx
6: 42 inc %edx
7: 89 d0 mov %edx,%eax
9: eb 01 jmp c <f+0xc>
b: 90 nop
c: c9 leave
d: c3 ret
bash-2.02$
--
Mike Davies
More information about the users
mailing list