Skip to content

cpukit/libdl/arm: Obey instruction encoding requirements for Thumb BLX

Kinsey Moore requested to merge opticron/rtems:libdl-thumb-blx into main

Summary

cpukit/libdl/arm: Obey instruction encoding requirements for Thumb BLX

Calls from Thumb code into ARM code require the use of a BLX instruction and an optional offset prefix instruction. The BLX instruction encoding requires that the least significant bit be 0 in all cases while the BL instruction for Thumb-to-Thumb calls includes that bit as part of the offset. This ensures that bit 0 of the BLX is set to 0 as required by the instruction encoding specification.

Merge request reports