bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/21824] New: MSP430 relative PC 10-bit optimisation


From: bengreen5mx at gmail dot com
Subject: [Bug ld/21824] New: MSP430 relative PC 10-bit optimisation
Date: Mon, 24 Jul 2017 10:35:17 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]