https://sourceware.org/bugzilla/show_bug.cgi?id=21824

            Bug ID: 21824
           Summary: MSP430 relative PC 10-bit optimisation
           Product: binutils
           Version: 2.30 (HEAD)
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: bengreen5mx at gmail dot com
  Target Milestone: ---

Created attachment 10283
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10283&action=edit
Patch for this small enhancement.

I noticed that the bfd library performs an optimisation for only 
the MSP430X which is also applicable to the MSP430.
The fix is quite simple and I have attached it as a patch.

bfd: PC-relative jump for MSP430

bfd/
        * elf32-msp430.c (msp430_elf_relax_section):
        The MSP430 and MSP430X both support 10bit PC-relative jump.
        Ref: SLAU144J.pdf section 3.4.3 Jumps.
        Changed the condition that applies the optimisation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to