Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8048

Relocation overflows for BIT instruction using 20-bit pointer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-274
    • SDSCM00038293
    • Hide
      MSP430_18.1.0.LTS
      MSP430_20.2.0.LTS
      MSP430_4.4.0B1
      MSP430_21.6.0.LTS
      MSP430_15.12.0.LTS
      MSP430_18.12.0.LTS
      MSP430_16.9.0.LTS
      Show
      MSP430_18.1.0.LTS MSP430_20.2.0.LTS MSP430_4.4.0B1 MSP430_21.6.0.LTS MSP430_15.12.0.LTS MSP430_18.12.0.LTS MSP430_16.9.0.LTS

      When using options "cl430 -vmspx --data_model=large --near_data=globals", the compiler uses a BIT.W instruction to test a 20-bit address, leading to a relocation overflow. This bug does not happen if --near_data=none (the compiler uses BITX.W).

      The compiler should either use a BITX.W instruction to test expressions which involve pointer addresses, or use a relocation that ignores overflow.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: