Skip to main content
Explorer
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
  • 836 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.

 

    This topic has been closed for replies.
    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

    TDKAnswer
    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

    Louis__0Author
    Explorer
    August 3, 2024

    Your answer has given me great inspiration!Thanks!