Forum Discussion

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

Global pointer _gp

Dear Forum

I'm trying to allocate some data in a new section to avoid having them zeroed during a boot.

I use __attribute__ ((section (".nv_sram"))) after the declaration of the variable and then add the following lines in the linker script to have the section output in the binary too.

.nv_sram :

{

. = ALIGN(32 / 8)%3
No RepliesBe the first to reply