The system lookup can not find stdio functions such as printf on Windows 10

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: repo-panama
    • Component/s: tools

      The current implementation of CLinker::systemLookup can not find stdio functions like printf on Windows 10.

      On Windows 10, we load ucrtbase.dll as a library for the system lookup. But, this dll doesn't contain many stdio functions, because they are implemented as inline functions in the standard library header files.

      We can use a fallback library that exposes pointer to these functions. The fallback library would be compiled by a native compiler, which would generate the needed code for the inline functions in the fallback library. The pointer can then be looked up by the system lookup.

            Assignee:
            Jorn Vernee
            Reporter:
            Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: