Vote count: 0
Say for example that I am writing a simple C program that will contain a global variable. This variable should be placed in the .data segment, which I would like to exist at an address that is exactly 1 byte after the .text segment ends. Since I won't know the size of .text until compilation, I can't just hard code it into my linker script. How do I specify "put this data right after"?
asked 54 secs ago
Linker scripts: how can I force a segment to begin at the end of another?
Aucun commentaire:
Enregistrer un commentaire