How do I set start_symbol (for linker directive ENTRY)?

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

How do I set start_symbol (for linker directive ENTRY)?

926件の閲覧回数
rshipman
Contributor V

Hi,

How do I change the linker directive ENTRY to point at something other than ResetISR, without either:

  • Turning managed linker script generation off, and editting the linker .ld file.
  • Copying linkscript_common.ldt to my project and editting it?

Neither of which are particularly desirable. If there was a linkscript_entry.ldt which just held the ENTRY call, that would probably be ok.

However, the linkscript_common.ldt contains the line: ENTRY(${start_symbol})

So it looks like I should be able to just set start_symbol and not have to mess about with .ldt or .ld files.

How or where is start_symbol set please? It seems to be automatically set to ResetISR somewhere, but I cannot find it.

I tried setting it as a build symbol but that didn't work, not surprisingly, as I imagine this linker file generation is outside of the build framework.

Many thanks.

ラベル(1)
0 件の賞賛
返信
1 返信

866件の閲覧回数
converse
Senior Contributor V

What are you actually trying to achieve? Changing the linker ENTRY symbol will have no affect on your program at all. All it does, is set the entry symbol in the AXF file, which is used by program loaders to find the entry point of your program, but for flash based programs, the 'entry' of your program is defined in the vector table (at address 0x4) and this is set in the startup code.

0 件の賞賛
返信