Using newlib (was: [Efi332] Building newlib/libgloss for MPC555)
David Eicher
sailors3
Tue Aug 9 02:54:45 UTC 2005
Well, I tried executing my freshly built target code that has newlib and
libgloss in it. The code ran perfect until it hit the first call into newlib
(libc), the call was to printf( ). Below is a output from linking my target
with -v option on linker. Not sure if that will tell anyone anything useful,
it doesn't help me with my limited experience.
I'm a bit confused about what tells make to use the rs6000 version of
libgloss? Not sure how that is being picked up. When I go through my
main.map file I do indeed find encouraging stuff there, my modified
mbx-outbyte.o and mbx-inbyte.o are there, so I can't be too far off.
Gunter, I'm trying to understand what to change if I go back and configure
again. I haven't modified any makefiles for newlib or libgloss.
I tried changing the linker switch from -melf32ppc to -mcpu=555, linking
went fine, but no change in printf behavior.
I don't have a source level debugger running yet. I suppose it is time. I
can't troubleshoot printf using the OCDComander from Macraigor, it is
assembly code level, and I don't have list files for the libraries (like
mbx-outbyte.lis). And, I don't know how to create them.
I suppose I need to start the project of getting gdb/insight to work,
probably will need it later anyway.
Any insight anyone can offer would be appreciated.
Thanks much,
Dave
----------------------------------------------
Dave at Dell8400 /usr/local/zfi555FBMonitor
$ make
powerpc-elf-gcc -L/usr/local/powerpc-elf/lib
/usr/local/zfi555FBMonitor/bin/LED.o /usr/local/zfi555FBMonitor/bin/BIT.o
/usr/local/zfi555FBMonitor/bin/sci_io.o /usr/local/zfi555FBMonitor/bin/__me
m.o /usr/local/zfi555FBMonitor/bin/__ppc_eabi_init.o
/usr/local/zfi555FBMonitor/bin/5xx_board_init.o
/usr/local/zfi555FBMonitor/bin/startup.o
/usr/local/zfi555FBMonitor/bin/bbc.o /usr/local/zfi5
55FBMonitor/bin/dptram.o /usr/local/zfi555FBMonitor/bin/l2u.o
/usr/local/zfi555FBMonitor/bin/mios1.o /usr/local/zfi555FBMonitor/bin/qadc.o
/usr/local/zfi555FBMonitor/bin/qsmcm.o /usr/local/zfi55
5FBMonitor/bin/tcan.o /usr/local/zfi555FBMonitor/bin/tpu3.o
/usr/local/zfi555FBMonitor/bin/uimb.o
/usr/local/zfi555FBMonitor/bin/usiuclk.o
/usr/local/zfi555FBMonitor/bin/usiugpio.o /usr/local/zf
i555FBMonitor/bin/usiumem.o /usr/local/zfi555FBMonitor/bin/usiusys.o
/usr/local/zfi555FBMonitor/bin/usiutmr.o
/usr/local/zfi555FBMonitor/bin/exctable.o
/usr/local/zfi555FBMonitor/bin/excfuncs.o
/usr/local/zfi555FBMonitor/bin/appconfig.o
/usr/local/zfi555FBMonitor/bin/arch.o
/usr/local/zfi555FBMonitor/bin/pcmaster.o
/usr/local/zfi555FBMonitor/bin/main.o -o main.elf -mcpu=555 -Wl -Tdebug
.dld -Wl,-Map=main.map -nostartfiles -lc -lm -lmbx -v
Reading specs from /usr/local/lib/gcc/powerpc-elf/3.4.0-macraigor1/specs
Configured with: /rel/share/gnu/src/gcc-3.4.0-macraigor1/configure
--host=i686-pc-cygwin --target=powerpc-elf --disable-nls --with-stabs
--disable-install-libiberty --disable-install-libbfd --di
sable-dependency-tracking --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld
Thread model: single
gcc version 3.4.0-macraigor1
/usr/local/libexec/gcc/powerpc-elf/3.4.0-macraigor1/collect2.exe -V -Qy -dn
-Bstatic -o main.elf -L/usr/local/powerpc-elf/lib
-L/usr/local/lib/gcc/powerpc-elf/3.4.0-macraigor1 -L/usr/local/lib/
gcc/powerpc-elf/3.4.0-macraigor1/../../../../powerpc-elf/lib
/usr/local/zfi555FBMonitor/bin/LED.o /usr/local/zfi555FBMonitor/bin/BIT.o
/usr/local/zfi555FBMonitor/bin/sci_io.o /usr/local/zfi555FB
Monitor/bin/__mem.o /usr/local/zfi555FBMonitor/bin/__ppc_eabi_init.o
/usr/local/zfi555FBMonitor/bin/5xx_board_init.o
/usr/local/zfi555FBMonitor/bin/startup.o
/usr/local/zfi555FBMonitor/bin/bbc.o
/usr/local/zfi555FBMonitor/bin/dptram.o
/usr/local/zfi555FBMonitor/bin/l2u.o /usr/local/zfi555FBMonitor/bin/mios1.o
/usr/local/zfi555FBMonitor/bin/qadc.o /usr/local/zfi555FBMonitor/bin/qsmcm.o
/usr/local/zfi555FBMonitor/bin/tcan.o /usr/local/zfi555FBMonitor/bin/tpu3.o
/usr/local/zfi555FBMonitor/bin/uimb.o
/usr/local/zfi555FBMonitor/bin/usiuclk.o
/usr/local/zfi555FBMonitor/bin/usiugpio
.o /usr/local/zfi555FBMonitor/bin/usiumem.o
/usr/local/zfi555FBMonitor/bin/usiusys.o
/usr/local/zfi555FBMonitor/bin/usiutmr.o
/usr/local/zfi555FBMonitor/bin/exctable.o /usr/local/zfi555FBMonitor
/bin/excfuncs.o /usr/local/zfi555FBMonitor/bin/appconfig.o
/usr/local/zfi555FBMonitor/bin/arch.o
/usr/local/zfi555FBMonitor/bin/pcmaster.o
/usr/local/zfi555FBMonitor/bin/main.o -Map=main.map -lc
-lm -lmbx -lgcc -lgcc -Tdebug.dld
GNU ld version 2.15
Supported emulations:
elf32ppc
elf32ppclinux
elf32ppcsim
Dave at Dell8400 /usr/local/zfi555FBMonitor
$
More information about the Efi332
mailing list