static const char *flash_map[] =
{
"4 Mb map 256/256",
"2 Mb no map",
"8 Mb map 512/512",
"16 Mb map 512/512",
"32 Mb map 512/512",
"16 Mb map 1024/1024",
"32 Mb map 1024/1024",
"unknown map",
"unknown",
};
and then:
$ xtensa-lx106-elf-objdump -j .rodata.str1.4 -s stats.o | tail -15
0350 00000000 68617264 77617265 20776174 ....hardware wat
0360 6368646f 67000000 65786365 7074696f chdog...exceptio
0370 6e000000 736f6674 77617265 20776174 n...software wat
0380 6368646f 67000000 75736572 20726573 chdog...user res
0390 65740000 64656570 20736c65 65702061 et..deep sleep a
03a0 77616b65 00000000 34204d62 206d6170 wake....4 Mb map
03b0 20323536 2f323536 00000000 32204d62 256/256....2 Mb
03c0 206e6f20 6d617000 38204d62 206d6170 no map.8 Mb map
03d0 20353132 2f353132 00000000 3136204d 512/512....16 M
03e0 62206d61 70203531 322f3531 32000000 b map 512/512...
03f0 3332204d 62206d61 70203531 322f3531 32 Mb map 512/51
0400 32000000 3136204d 62206d61 70203130 2...16 Mb map 10
0410 32342f31 30323400 3332204d 62206d61 24/1024.32 Mb ma
0420 70203130 32342f31 30323400 756e6b6e p 1024/1024.unkn
0430 6f776e20 6d617000 own map.
These strings are going straight into .rodata