Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Unhosted BareMetal ld choice

Hey all

A bit confused about the choosing of the linker script for the unhosted baremetal.

At all the examples with the EDS its clearly written :

" Derived from file "armulator-ram-hosted.ld""

but if I look at the first .text section :

PROVIDE(__cs3_reset = __cs3_reset_generic);

If I look at the objdump I see that the __cs3_reset function jumpes to __cs3_start_asm_sim

if I change to "PROVIDE(__cs3_reset = __cs3_reset_armulator_ram);" the "__cs3_start_asm_sim" becomes just "_start"

this bothers me because "__cs3_start_asm_sim" contains "svc 0x00123456 " instruction even if I link it with the unhosted option(which I suspect being problematic)

If I look at the codesourcery documentation I dont see common startup code sequence for cyclone 5 (only for cyclone 3)
No RepliesBe the first to reply