This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
2 68k cpu questions
- From: "Franzi Edo." <edo dot franzi at ukos dot ch>
- To: crossgcc at sourceware dot org
- Date: Tue, 23 May 2006 23:15:23 +0200
- Subject: 2 68k cpu questions
Gentlemen,
I have a couple of problems concerning the cross-compilation.
I have generated a toolchain to create the compiler for 68k targets;
here are my conditions:
1: running on OSX 10.4.6
2: toolchain for 68k-elf cpu created with binutils-2.16.92,
gcc-4.1.0 and newlib-1.14.0
3: I have written the functions ...
... close, fstat, getpid, isatty, kill, lseek, open, read,
sbrk, stat, unlink, write, inbyte, outbyte to be able
to use stdlib functions.
4: I can create applications but the linker informs me that the
symbol "__errno" is undefined (see the snapshot of the listing)
0011b6ba g F .text 00000012 _cleanup
0011ce84 g F .text 0000008a _Balloc
00000000 *UND* 00000000 __errno
0011cf0e g F .text 00000104 _d2b
0011d200 g F .text 00000160 _multiply
0011def4 g F .text 00000032 _fstat_r
Any suggestion on how to define (or use) this symbol?
My second question is about the access to the static data. I would
like to point the data with an index register
(typically A5). So, the crt0 should be able to initialise A5 with
the .data pointer and I would like that gcc generates the
data access like this move.l .....,(offsetxyz,A5).
Any suggestion on how to implement this?
Thanks
Edo
--
For unsubscribe information see http://sourceware.org/lists.html#faq