Kinsey Moore commented on a discussion on cpukit/libdl/rtl-mdreloc-arm.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/223#note_112535

 >        if (!parsing) {
 > +        uint16_t bl_tmp;
 > +
 >          sign = (tmp >> 24) & 1;
 >          *(uint16_t *)where = (uint16_t)((upper_insn & 0xf800) | (sign << 
 > 10) |
 >                                          ((tmp >> 12) & 0x3ff));
 >  
 > -        *((uint16_t *)where + 1) = (uint16_t)((lower_insn & 0xd000)|
 > -                                              ((sign ^ (~(tmp >> 23) & 1)) 
 > << 13) |
 > -                                              ((sign ^ (~(tmp >> 22) & 1)) 
 > << 11) |
 > -                                              ((tmp >> 1) & 0x7ff));
 > +        bl_tmp = (uint16_t)((lower_insn & 0xd000)|
 > +                           ((sign ^ (~(tmp >> 23) & 1)) << 13) |
 > +                           ((sign ^ (~(tmp >> 22) & 1)) << 11) |
 > +                           ((tmp >> 1) & 0x7ff));
 > +    /* Thumb jumps to ARM mode must have 0 in the LSB of the BLX */

Sorry, missed a tab. Fixed now.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/223#note_112535
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to