(toppers-users 2768) Windows Vista環境CygwinでのSH3用GDBスタブリンクエラーについて

TANAKA Norio nori @ spacesoft.co.jp
2008年 6月 17日 (火) 23:34:44 JST


皆様

スペースソフトの田中です。
お世話になっております。

現在、SH4用GDBスタブを作成し、Windows Vista環境のCygwinで
makeを試みております。
Windows XPで問題なくmakeできるコードがWindows Vistaでは
リンク時にエラーとなります。
それで、TOPPERS/JSPカーネルページからダウンロードしたSH3用
GDBスタブを何も変更せずにmakeしてもやはり同じエラーがでます。

このリンク時障害の回避法をご存知の方がいれば、ご教授ください。

障害発生時の環境は、

  Windows Vista Home Premium SP1
  Cygwin DLL 1.5.25-14
  GCCはtoppers-users 1413で紹介されている
        sh-hitachi-elf_toppers_cygwin-1.tar.gz

です。
SH3用GDBスタブmake時の障害発生時ログを以下に添付します。

$ make
sh-hitachi-elf-gcc -I. -O2 -g -m3 -ml -pipe   -c -o sh-stub.o sh-stub.c
sh-hitachi-elf-gcc -I. -D__ASSEMBLY__ -m3 -ml -traditional -c -o entry.o entry.S
sh-hitachi-elf-gcc -I. -D__ASSEMBLY__ -m3 -ml -traditional -c -o init_sesh3.o init_sesh3.S
sh-hitachi-elf-gcc -I. -O2 -g -m3 -ml -pipe   -c -o sh-sci.o sh-sci.c
In file included from sh-sci.c:22:
config.h:5:34: warning: no newline at end of file
sh-hitachi-elf-gcc -I. -D__ASSEMBLY__ -m3 -ml -traditional -c -o setjmp.o setjmp.S
sh-hitachi-elf-gcc -I. -O2 -g -m3 -ml -pipe   -c -o string.o string.c
sh-hitachi-elf-gcc -I. -E -C -P -I. sh-stub.lds.S >sh-stub.lds
In file included from sh-stub.lds.S:1:
config.h:5:34: warning: no newline at end of file
sh-hitachi-elf-ld -EL -T sh-stub.lds entry.o sh-stub.o init_sesh3.o sh-sci.o \
                setjmp.o string.o \
                -o sh-stub
sh-hitachi-elf-ld: section .rodata.str1.4 [00000000000015d4 -> 00000000000015e7] overlaps section .data [00000000000015d4 -> 0000000000001707]
make: *** [sh-stub] Error 1

以上、よろしくお願いします。

----
TANAKA Norio - nori @ spacesoft.co.jp
  http://www.spacesoft.co.jp/
  Phone 092-321-1812 / Fax 092-321-1813