Altera_Forum
Honored Contributor
20 years agoGNU linker
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