xtensa-esp32-elf-ld does not create symbols from binary file
Posted: Sun Apr 22, 2018 8:59 am
Hi
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 I have these symbols which can be accessed from source code.
but I can not create appropriate object file with xtensa-esp32-elf-ld. when I used this approach output file is the same as the input and no symbol is reported via xtensa-esp32-elf-nm.
How can I do it?
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?