I am working on ESP-WROOM-32 module. I want to embedding a whole binary file ( i.e. all sections + ...) as an array.
I know this can be achieved via ld command. I test this approach and it works fine for arm processor and PC (x86_64).
with this
Code: Select all
arm-linux-gnueabihf-ld -r -b binary pproc -o pproc.dat
Code: Select all
0000346c D _binary_pproc_end
0000346c A _binary_pproc_size
00000000 D _binary_pproc_start
Code: Select all
xtensa-esp32-elf-ld -r -b binary pproc -o pproc.dat --no-relax
How can I do it?