_PRESTART (.init) section - who created this and why?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

_PRESTART (.init) section - who created this and why?

ソリューションへジャンプ
1,216件の閲覧回数
leesp
Contributor I

Hi,

I am a newbie using CW for MC9S08. I noticed that there is a section _PRESTART (or .init) section which is created by the Linker automatically. In the manual it says:

 

"The application entry point is sotred in the segment _PRESTART. This segment also has got to be associated with a READ_ONLY section".

 

I checked the start08.c file but I could not find a section named _PRESTART or .init

 

Can anyone please advise?

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
901件の閲覧回数
CrasyCat
Specialist III

Hello

 

The Linker will rename the section where the entry point is implemented as .init.

Per default application entry point is _Startup, which is implemented in star08.c. So section .text from module start08.c will be renamed internally as .init by the linker.

 

CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
902件の閲覧回数
CrasyCat
Specialist III

Hello

 

The Linker will rename the section where the entry point is implemented as .init.

Per default application entry point is _Startup, which is implemented in star08.c. So section .text from module start08.c will be renamed internally as .init by the linker.

 

CrasyCat

0 件の賞賛
返信