Hello Experts,
I have a problem where function calls is not happening properly.
Let's say we have func1 calling func2 in code but in assembly I find that branch instruction bl or b is jumping to random address in the middle of third function.
I confirmed the issue by looking at disassembly and map file addresses.
As expected, this is making the complete SW unstable.
Board -> AWR2944EVM and Compiler is CLANG TI latest LTS version.
Linker options
-Xlinker -qq \
-Xlinker --unused_section_elimination=on \
-Xlinker --diag_suppress=10063-D \
-Xlinker --diag_suppress=10068-D \
-Xlinker --diag_suppress=10247-D \
-Xlinker --reread_libs \
-Xlinker --compress_dwarf=on \
-Xlinker --copy_compression=rle \
-Xlinker -a \
-Xlinker --rom_model \
BR,
Andrew