structure mis-alignment with tricore-ld executable

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Level 1
Level 1
Hi Team,

I am working on TC397 for my current project. I need to use tricore-ld for generating elf file.

The same source code, when I compile using tricore-g++, the structure is placed at 4 Bytes aligned address.
If I use tricore-ld, the alignment is not proper and it is placing the structure at an odd address, which is resulting into a CPU trap and application crash.
I have tried the option of ALIGN(4) in the linker script, but no luck.

Could you please provide a way of achieving proper alignment of data in dsram using tricore-ld.

Srikanth Vemula.
0 Replies