Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

GNU linker

Altera_Forum
Honored Contributor II
1,007 Views

Dear everybody, 

 

I have noted a strange behaviour of the GNU linker whenever I have declared 

a "const char" structure of less than 10 bytes size. Instead to allocate the structure 

in the .text section, the linker has allocated the structure in the .data section. If 

the structure is greater than 9 bytes size, the linker allocates its in the .text 

section. 

 

Could you explain this behaviour ? 

 

Best Regards 

 

/Alessandro
0 Kudos
0 Replies
Reply