TOP > ソフトウェア > 勝手に作成されるファイルをコントロールする その2
 ■ scapp.det

 LinkerのSectionの設定に関係のあるscapp.detの編集方法について記述します。しかし変更する箇所はあまりないので、すぐに終わります。

 ■ 警告! Warning!

 今回行うのは、HEWの設定をいじったりするというものではなく、設定ファイルの一部を消去したり、書き換えたりするというものなので、最悪動かなくなる可能性があります。
 下記の記事を実行するのは、自己責任でお願いします。また、心配な方は決して行わずに今まで紹介した方法でmotファイルを作ってください。


 ■ Debug

 長いですが、下記の赤い部分、青い部分を修正します。
[H8/300H-Sample H8/300H Device-Debug] ⇒ [H8/300H-3052F-Debug]

0xFFEF10 ⇒ 0xFFDF10

[H8/300H-Sample H8/300H Device-Debug] .vects 0 0 1 0x00000000 0 1 <<CEND>> <<GEND>> .text 0 0 1 0x00000100 0 0 0 .text All files <<FEND>> 0 .text.* All files <<FEND>> 1 etext <<FEND>> <<CEND>> <<GEND>> .init 0 0 0 0 0 0 .init All files <<FEND>> <<CEND>> <<GEND>> .fini 0 0 0 0 0 0 .fini All files <<FEND>> <<CEND>> <<GEND>> .got 0 0 0 0 0 0 .got All files <<FEND>> 0 .got.plt All files <<FEND>> <<CEND>> <<GEND>> .rodata 0 0 0 0 0 0 .rodata All files <<FEND>> 0 .rodata.* All files <<FEND>> 1 _erodata <<FEND>> <<CEND>> <<GEND>> .eh_frame_hdr 0 0 0 0 0 0 .eh_frame_hdr All files <<FEND>> <<CEND>> <<GEND>> .eh_frame 0 0 0 0 0 0 .eh_frame All files <<FEND>> <<CEND>> <<GEND>> .jcr 0 0 0 0 0 0 .jcr All files <<FEND>> <<CEND>> <<GEND>> .tors 0 0 0 0 0 1 __CTOR_LIST__ <<FEND>> 1 ___ctors <<FEND>> 0 .ctors All files <<FEND>> 1 ___ctors_end <<FEND>> 1 __CTOR_END__ <<FEND>> 1 __DTOR_LIST__ <<FEND>> 1 ___dtors <<FEND>> 0 .dtors All files <<FEND>> 1 ___dtors_end <<FEND>> 1 __DTOR_END__ <<FEND>> 1 _mdata <<FEND>> <<CEND>> <<GEND>> .data 0 0 _mdata 1 0xFFEF10 0 0 1 _data <<FEND>> 0 .data All files <<FEND>> 0 .data.* All files <<FEND>> 1 _edata <<FEND>> <<CEND>> <<GEND>> .gcc_exc 0 0 0 0 0 0 .gcc_exc All files <<FEND>> <<CEND>> <<GEND>> .bss 0 0 0 0 0 1 _bss <<FEND>> 0 .bss All files <<FEND>> 0 COMMON All files <<FEND>> 1 _ebss <<FEND>> 1 _end <<FEND>> <<CEND>> <<GEND>> .stack 0 0 1 0xFFFF10 0 0 1 _stack <<FEND>> <<CEND>> <<GEND>>


 ■ Release

 Debugの方と同じように、Releaseも赤い部分、青い部分を修正します。
これら二つのデータは、scapp.detのどこかに記入されていればOKです。 [H8/300H-Sample H8/300H Device-Release] ⇒ [H8/300H-3052F-Release]

0xFFEF10 ⇒ 0xFFDF10

[H8/300H-Sample H8/300H Device-Release] .vects 0 0 1 0x00000000 0 1 <<CEND>> <<GEND>> .text 0 0 1 0x00000100 0 0 0 .text All files <<FEND>> 0 .text.* All files <<FEND>> 1 etext <<FEND>> <<CEND>> <<GEND>> .init 0 0 0 0 0 0 .init All files <<FEND>> <<CEND>> <<GEND>> .fini 0 0 0 0 0 0 .fini All files <<FEND>> <<CEND>> <<GEND>> .got 0 0 0 0 0 0 .got All files <<FEND>> 0 .got.plt All files <<FEND>> <<CEND>> <<GEND>> .rodata 0 0 0 0 0 0 .rodata All files <<FEND>> 0 .rodata.* All files <<FEND>> 1 _erodata <<FEND>> <<CEND>> <<GEND>> .eh_frame_hdr 0 0 0 0 0 0 .eh_frame_hdr All files <<FEND>> <<CEND>> <<GEND>> .eh_frame 0 0 0 0 0 0 .eh_frame All files <<FEND>> <<CEND>> <<GEND>> .jcr 0 0 0 0 0 0 .jcr All files <<FEND>> <<CEND>> <<GEND>> .tors 0 0 0 0 0 1 __CTOR_LIST__ <<FEND>> 1 ___ctors <<FEND>> 0 .ctors All files <<FEND>> 1 ___ctors_end <<FEND>> 1 __CTOR_END__ <<FEND>> 1 __DTOR_LIST__ <<FEND>> 1 ___dtors <<FEND>> 0 .dtors All files <<FEND>> 1 ___dtors_end <<FEND>> 1 __DTOR_END__ <<FEND>> 1 _mdata <<FEND>> <<CEND>> <<GEND>> .data 0 2 _mdata 1 0xFFEF10 0 0 1 _data <<FEND>> 0 .data All files <<FEND>> 0 .data.* All files <<FEND>> 1 _edata <<FEND>> <<CEND>> <<GEND>> .gcc_exc 0 0 0 0 0 0 .gcc_exc All files <<FEND>> <<CEND>> <<GEND>> .bss 0 0 0 0 0 1 _bss <<FEND>> 0 .bss All files <<FEND>> 0 COMMON All files <<FEND>> 1 _ebss <<FEND>> 1 _end <<FEND>> <<CEND>> <<GEND>> .stack 0 0 1 0xFFFF10 0 0 1 _stack <<FEND>> <<CEND>> <<GEND>>




 ■ おわりに

 以上でscapp.detの修正は完了です。この手順を怠ると、Linkerのsectionが何もない状態になってしまい、非常に面倒です。ともかく、これで編集は完了です。お疲れ様でした。

履歴 2005年12月17日 公開

[TOP] [ソフトウェア] [勝手に作成されるファイルをコントロールする]
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送