Hi All,
Thank you guys for the answers, it helps a lot.
However, I have not solved the issue to be cleared.
What I wanted to is, put 4 bytes data at very end of bin file, regardless file size.
I did tried # pragma directive like:
#pragma address data_on_eof = 0x2f000
ULONG data_on_eof = 0x0000E1F1;
Note: Current file size is 179,356 bytes (0x2bc9c)
But line "#pragma" was ignored by gcc, and
.data.data_on_eof
0x10000000 0x4 ./src/test/test.o
0x10000000 data_on_eof
Is there any way to locate "data_on_eof" at the very end of .bin file anyway?
Regards,