Comment 3 for bug 1421389

Revision history for this message
Terry Guo (terry.guo) wrote :

Without a real case, I can just guess. I remember I handled a case which branches to an address defined via linker script symbol (an absolute immediate address essentially). The code at that address could be in arm mode or in thumb mode, the linker has no way to figure this out. But one thing the linker can do is to check whether target is thumb-only target, if yes, then we do need "value |= 1" to make sure we stay in thumb mode. In this case, it is possible that the linker script symbol hasn't thumb bit set.