Hello,
I just made the objdump. It contains the following info:
Sections:
Idx Name Size VMA LMA File off Algn
0 .entry 00000020 00000000 00000000 000000d4 2**5
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .exceptions 00000128 00000020 00000020 000000f4 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .text 0000a9b4 00000148 00000148 0000021c 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
3 .rodata 00000610 01000000 0000aafc 0000abd0 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .rwdata 00000b70 01000610 0000b10c 0000b1e0 2**2
CONTENTS, ALLOC, LOAD, DATA, SMALL_DATA
5 .bss 00000218 01001180 01001180 0000be84 2**2
ALLOC, SMALL_DATA
6 .Flash 00000000 0000bc7c 0000bc7c 0000be84 2**0
CONTENTS
7 .FPGARAM1 00000134 01001398 0000bc7c 0000bd50 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
8 .FPGARAM2 00000000 01008000 01008000 0000be84 2**0
CONTENTS
9 .comment 0000114d 00000000 00000000 0000be84 2**0
CONTENTS, READONLY
10 .debug_aranges 00000cc0 00000000 00000000 0000cfd8 2**3
CONTENTS, READONLY, DEBUGGING
11 .debug_pubnames 00001186 00000000 00000000 0000dc98 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_info 000234c4 00000000 00000000 0000ee1e 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_abbrev 00007cd5 00000000 00000000 000322e2 2**0
CONTENTS, READONLY, DEBUGGING
14 .debug_line 000140b3 00000000 00000000 00039fb7 2**0
CONTENTS, READONLY, DEBUGGING
15 .debug_frame 00001494 00000000 00000000 0004e06c 2**2
CONTENTS, READONLY, DEBUGGING
16 .debug_str 00003076 00000000 00000000 0004f500 2**0
CONTENTS, READONLY, DEBUGGING
17 .debug_alt_sim_info 00000020 00000000 00000000 00052578 2**2
CONTENTS, READONLY, DEBUGGING
18 .debug_ranges 000005a8 00000020 00000020 00052598 2**0
CONTENTS, READONLY, DEBUGGING
The FPGARAM1 and FPGARAM2 are in there as a section. My function is declared in the following way:
int ReadFlash (FILE* fp) __attribute__ ((section (".FPGARAM1.txt")));
I think that this is OK.
Is there anything else that I have to verify?
thanks,
Dolphin