Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to declare linker symbol in C files
Dear all, As we known, the generated automatically linker script defined many symbols for use. For example: __bss_start. We can use these symbols in source files, for example, in *.S ...
Altera_Forum
Honored Contributor
20 years agoDavid,
This works for me. // declare the external. extern unsigned char *__bss_start; // somewhere in a function. printf("%u\n",(unsigned int)&__bss_start); The print shows my correct start of bss. Maybe you are trying to access the 'content of' rather than 'address of'. Banx.