cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the function address in the vector table offset by 1 byte from the actual function address?

Louis__0
Associate III

Such as the title,why is the function address in the vector table offset by 1 byte from the actual function address?

In the vector table:

Louis__0_0-1722704079097.png

Actually:

Louis__0_1-1722704151932.png

and

Louis__0_2-1722704204996.png

This makes me wonder.

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Just an artifact of thumb instruction mode. The LSB is treated as a flag, rather than as a part of the address.

Function address in ARM assembly have one byte offset? - Stack Overflow

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Guru

Just an artifact of thumb instruction mode. The LSB is treated as a flag, rather than as a part of the address.

Function address in ARM assembly have one byte offset? - Stack Overflow

If you feel a post has answered your question, please click "Accept as Solution".

Your answer has given me great inspiration!Thanks!