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

Unresolved reference to runtime library function when that function is referenced from asm statement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Code Generation Tools
    • CODEGEN-9850
    • ARMCLANG_2.0.0.STS
    • Hide
      ARMCLANG_2.1.0.BETA1
      ARMCLANG_2.1.0.LTS*
      Show
      ARMCLANG_2.1.0.BETA1 ARMCLANG_2.1.0.LTS*
    • default
    • Hide
      If the referenced runtime library function is "_c_int00", the issue can potentially be worked around by adding a -c or -cr option to a linker command file that is incorporated into the link, or by adding a "-Wl,-c" or "-Wl,-cr" to the tiarmclang command that performs the link step.

      In other cases, if the referenced runtime library function can be identified, the issue can be avoided by modifying the source code where the runtime library function is referenced, so that the reference does not occur inside an asm() statement.
      Show
      If the referenced runtime library function is "_c_int00", the issue can potentially be worked around by adding a -c or -cr option to a linker command file that is incorporated into the link, or by adding a "-Wl,-c" or "-Wl,-cr" to the tiarmclang command that performs the link step. In other cases, if the referenced runtime library function can be identified, the issue can be avoided by modifying the source code where the runtime library function is referenced, so that the reference does not occur inside an asm() statement.

      If an application is referencing function defined in a runtime library from an asm() statement in a file that was compiled with -flto, then it is likely that the linker will not resolve the reference to that runtime support function before starting the Link-Time Optimization (LTO) stage of the link.

      There are two known potential failure symptoms that can occur during the link in this situation:

      • the linker may emit an error reporting an unresolved reference to the runtime library function
      • the linker may emit an error reporting the redefinition of a symbol that is seemingly unrelated to the referenced runtime library function

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

              Created:
              Updated:
              Resolved: