This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Markers in Binary file

Hello alltogether,

for me a binary-file (.hex or .bin) looks like there is no structure in it. 

Do you know if it could be possible, to mark all my binarys, so that i can recognize? E. g. with a unique string i could grep or ? Or let's say line xyz start always with with same chars.

Do I have the opportunity to mark all my binaries like that? Is it actually posible?

I develop with ARMClang

Greets

Parents
  • puts("The MARK of the BEEF"); // Should be visible

    You could also put stuff in startup.s after or in the vector table, ie  DCD 0xDEADBEEF

    Generally you can also put strings, and arrays in the C file also, static const often works well, but you usually want to refer to them somewhere so the linker doesn't do dead code/data removal on it.

Reply
  • puts("The MARK of the BEEF"); // Should be visible

    You could also put stuff in startup.s after or in the vector table, ie  DCD 0xDEADBEEF

    Generally you can also put strings, and arrays in the C file also, static const often works well, but you usually want to refer to them somewhere so the linker doesn't do dead code/data removal on it.

Children
No data