[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arm-netbsd (Re: ARMulator)



にわか toolchain hacker の滝沢です.

In message ``Re: arm-netbsd (Re: ARMulator)''
        Sun Dec 19 07:51:14 JST 1999,
        you@nightbreak.org ("Y. Takizawa") writes:

> 例によって即席で gnu/usr.bin/ld を
> i386 上のクロスとして使えるようにしちゃいました(^^;;;).
...
> # shared は無理だろうなあ,きっと.
> # やっぱ ELF 化して(しつこい).

うーん.

--(ここから)--
# uname -srm
NetBSD 1.4P i386
# cd ${SRCDIR}
# arm-netbsd-make build
...
/usr/pkg/cross/bin/arm-netbsd-gcc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Werror   -nostdinc -idirafter /usr/pkg/cross/arm-netbsd/root/usr/include -c dd.c
cc1: warnings being treated as errors
dd.c: In function `setup':
dd.c:159: warning: null format string
dd.c:164: warning: null format string
*** Error code 1

Stop.
...
# cd ${SRCDIR}/lib/libc
# ls -Fa libc.so.* libc_pic.a
libc.so.12.52*  libc_pic.a
# file libc.so.12.52
libc.so.12.52: NetBSD/arm32 demand paged shared library not stripped 
# arm-netbsd-make install
# cd ${SRCDIR}/usr.bin/indent
# arm-netbsd-make
...
/usr/pkg/cross/bin/arm-netbsd-gcc   -o indent -nostdlib -L/usr/pkg/cross/arm-netbsd/root/usr/lib
/usr/pkg/cross/arm-netbsd/root/usr/lib/crt0.o  indent.o io.o lexi.o parse.o pr_comment.o args.o 
-lgcc -lc -lgcc 
arm-netbsd-ld: indent.o: RRS text relocation at 0x2388 for "___sF"
arm-netbsd-ld: indent.o: RRS text relocation at 0x2394 for "___sF"
arm-netbsd-ld: indent.o: RRS text relocation at 0x239c for "___sF"
arm-netbsd-ld: indent.o: RRS text relocation at 0x4784 for "__ctype_"
arm-netbsd-ld: indent.o: RRS text relocation at 0x4788 for "__toupper_tab_"
arm-netbsd-ld: io.o: RRS text relocation at 0x5f0c for "__ctype_"
arm-netbsd-ld: io.o: RRS text relocation at 0x6764 for "___sF"
arm-netbsd-ld: io.o: RRS text relocation at 0x6a60 for "__ctype_"
arm-netbsd-ld: io.o: RRS text relocation at 0x6a64 for "___sF"
arm-netbsd-ld: lexi.o: RRS text relocation at 0x6f78 for "__ctype_"
arm-netbsd-ld: lexi.o: RRS text relocation at 0x76d8 for "__ctype_"
arm-netbsd-ld: args.o: RRS text relocation at 0x999c for "___sF"
arm-netbsd-ld: args.o: RRS text relocation at 0x99b4 for "___sF"
arm-netbsd-ld: args.o: RRS text relocation at 0x99bc for "___sF"
arm-netbsd-ld: args.o: RRS text relocation at 0x99c4 for "__ctype_"
nroff -Tascii -mandoc indent.1 > indent.cat1
# file indent
indent: NetBSD/arm32 demand paged shared library not stripped
# tar xvpfz ${1.4DIR}/arm32/binary/sets/base.tgz ./usr/bin/indent
# file ./usr/bin/indent
./usr/bin/indent: NetBSD/arm32 demand paged shared library
--(ここまで)--

shared library って.

# ていうか,いきなり build かけるかっつー.

byte order とか違っても,target と host 決めうちすれば
a.out なクロスもけっこーいけるかもしれませんねえ.
いまだに host dependent と target dependent の部分が
よくわかんないけど(をいをい).

# a.out-i386-netbsd を /emul/aout で試してみようかな.
# できたとしても使い道ないけど(苦笑).

--
Y. Takizawa     (滝沢陽三)
you@nightbreak.org, takizawa@computer.org
``Don't feel as if the key to successful computing is only in your hands.''