Skip to main content
Louis__0
Associate II
August 3, 2024
Solved

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

  • August 3, 2024
  • 1 reply
  • 1570 views

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.

 

Best answer by TDK

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

1 reply

TDK
TDKBest answer
Super User
August 3, 2024

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""."
Louis__0
Louis__0Author
Associate II
August 3, 2024

Your answer has given me great inspiration!Thanks!