Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22004

Need to place const data at specific location, but the region is in the middle of text section

$
0
0

I need to put 2KB of const data at an exact location (internal flash) in final binary. This location is currently inside the text section of the memory.

enter image description here

The only logical way i can think of is to split my code such that i reserve the needed region inside MEMORY {..} definition and explicitly provide new section name for rest of the code.

Is there a much elegant way of doing this?


Viewing all articles
Browse latest Browse all 22004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>