bin2o by Rafael Vuijk (aka Dark Fader)
--------------------------------------
Bin2o is bit of a hacky tool to generate a GCC object file from a binary.
It adds a correct header and trailer with the option to specify the identifier.
Run program without parameters to see the syntax.

-----------------------------------
MY NOTES...
-----------------------------------

How did I do it?
----------------
Binary size & identifier size are variable.
Test object made with: const unsigned char blaat[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
Use bin2c and paste header/trailer arrays into bin2o.cpp (don't forget to remove 'const' keyword)
Add patch calls. Check addresses by changing datasize and identifier length.

.o structure
------------
<header>
<raw data>
<trailer>
<identifier>
<null-character>

-----------------------------------
TEMP...
-----------------------------------

identifier 'blaat'
------------------
b@0x160 0x21

identifier 'blaat2'
-------------------
b@0x160 0x22

data size 64
------------
a@0x20	0xA8
b@0xE8	0x40
b@0x10C 0x74
b@0x134 0x1E8
b@0x15C 0x258
b@0x1DC 0x40

data size 128
-------------
a@0x20	0xE8
b@0xE8	0x80
....
