Forum Discussion

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

GNU 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
No RepliesBe the first to reply