[all-commits] [llvm/llvm-project] bc24e6: [JITLink][COFF] Use DLLImportDefinitionGenerator f...

Sunho Kim via All-commits all-commits at lists.llvm.org
Fri Sep 9 23:27:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc24e6ab7c5ebb40045d0efe49da94b5ccc30b16
      https://github.com/llvm/llvm-project/commit/bc24e6ab7c5ebb40045d0efe49da94b5ccc30b16
  Author: sunho <ksunhokim123 at gmail.com>
  Date:   2022-09-10 (Sat, 10 Sep 2022)

  Changed paths:
    M llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp
    M llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.h
    M llvm/lib/ExecutionEngine/JITLink/COFF_x86_64.cpp
    M llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
    M llvm/test/ExecutionEngine/JITLink/X86/COFF_x86-64_small_pic_relocations.s

  Log Message:
  -----------
  [JITLink][COFF] Use DLLImportDefinitionGenerator for creating PLT stubs.

Uses DLLImportDefinitionGenerator for creating PLT stubs. It removes previous approach for dllimport stub creation which can't deal with jump thunks.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D132524


  Commit: 73c4033987c5ca6cf8022f840f3c42e3324da1cb
      https://github.com/llvm/llvm-project/commit/73c4033987c5ca6cf8022f840f3c42e3324da1cb
  Author: sunho <ksunhokim123 at gmail.com>
  Date:   2022-09-10 (Sat, 10 Sep 2022)

  Changed paths:
    M compiler-rt/lib/orc/CMakeLists.txt
    M compiler-rt/lib/orc/coff_platform.cpp
    A compiler-rt/lib/orc/coff_platform.per_jd.cpp
    M compiler-rt/test/orc/TestCases/Windows/x86-64/Inputs/standalone-dylib.c
    M compiler-rt/test/orc/TestCases/Windows/x86-64/hello-world.c
    M compiler-rt/test/orc/TestCases/Windows/x86-64/hello-world.cpp
    M compiler-rt/test/orc/TestCases/Windows/x86-64/priority-static-initializer-three.c
    M compiler-rt/test/orc/TestCases/Windows/x86-64/priority-static-initializer.c
    M compiler-rt/test/orc/TestCases/Windows/x86-64/sehframe-handling.cpp
    M compiler-rt/test/orc/TestCases/Windows/x86-64/static-initializer.cpp
    A compiler-rt/test/orc/TestCases/Windows/x86-64/trivial-atexit.c
    M compiler-rt/test/orc/TestCases/Windows/x86-64/trivial-jit-dlopen.c
    M compiler-rt/test/orc/lit.cfg.py
    M llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h
    M llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp

  Log Message:
  -----------
  [ORC][ORC_RT][COFF] Support dynamic VC runtime.

Supports dynamic VC runtime. It implements atexits handling which is required to load msvcrt.lib successfully. (the object file containing atexit symbol somehow resolves to static vc runtim symbols) It also default to dynamic vc runtime which tends to be more robust.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D132525


  Commit: d1c4d96126921e02a8f39b9a8ffa3c875158ffaf
      https://github.com/llvm/llvm-project/commit/d1c4d96126921e02a8f39b9a8ffa3c875158ffaf
  Author: sunho <ksunhokim123 at gmail.com>
  Date:   2022-09-10 (Sat, 10 Sep 2022)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h
    M llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
    M llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
    M llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
    M llvm/tools/lli/lli.cpp
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp

  Log Message:
  -----------
  [ORC][ORC_RT][COFF] Remove public bootstrap method.

Removes public bootstrap method that is not really necessary and not consistent with other platform API.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D132780


Compare: https://github.com/llvm/llvm-project/compare/545affbf79bf...d1c4d9612692


More information about the All-commits mailing list