Using gcc, I put some data into "sect_a", such as the following:
int sect_data1 __attribute__ ((section ("sect_a"))) = 0;
How can I get the start address and size of section "sect_a" at runtime?
I known that gcc can define a symbol at the start and end of section "sect_a" by link script, but the code is a static lib!
Arm linker will generate the section symbol automatic such as "Load$$region_n ame$$Base", but how gcc do it?
int sect_data1 __attribute__ ((section ("sect_a"))) = 0;
How can I get the start address and size of section "sect_a" at runtime?
I known that gcc can define a symbol at the start and end of section "sect_a" by link script, but the code is a static lib!
Arm linker will generate the section symbol automatic such as "Load$$region_n ame$$Base", but how gcc do it?