Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

User17563
Level 1
Level 1
Hello everybody.

I'm trying to statically modify a TriCore ELF file and I need to replace the return instruction to jump to my code.
The problem is that return instruction is 2 bytes long and in order to jump to my code I need 4 bytes.

Can anyone here suggest a creative way to do so? Maybe using symbols or anything else...??


Thanks in advance
0 Likes
1 Reply
User17486
Level 1
Level 1
Try to 2 bytes relative jump in an empty place near. And place your full absolute jump there
0 Likes