[all-commits] [llvm/llvm-project] 5cf008: [JITLink][COFF][x86_64] Implement SECTION/SECREL r...

Sunho Kim via All-commits all-commits at lists.llvm.org
Wed Aug 10 23:13:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5cf0082ae3f4b281963e999fcac4b875447f2cda
      https://github.com/llvm/llvm-project/commit/5cf0082ae3f4b281963e999fcac4b875447f2cda
  Author: Sunho Kim <ksunhokim123 at gmail.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
    M llvm/include/llvm/ExecutionEngine/JITLink/x86_64.h
    M llvm/lib/ExecutionEngine/JITLink/COFF_x86_64.cpp
    M llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
    M llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
    A llvm/test/ExecutionEngine/JITLink/X86/COFF_section_relocs.test

  Log Message:
  -----------
  [JITLink][COFF][x86_64] Implement SECTION/SECREL relocation.

Implements SECTION/SECREL relocation. These are used by debug info (pdb) data.

Reviewed By: lhames

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


  Commit: 9381de09526104fd08d0eef03032d6fbe491b9d1
      https://github.com/llvm/llvm-project/commit/9381de09526104fd08d0eef03032d6fbe491b9d1
  Author: Sunho Kim <ksunhokim123 at gmail.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M llvm/lib/ExecutionEngine/JITLink/COFF_x86_64.cpp

  Log Message:
  -----------
  [JITLink][COFF][x86_64] Stub SECREL relocation to external symbol.

Stubs SECREL relocation to external symbol. In order to correctly deal with this, we want to requrest memory manager to keep track of address of first block of sepecific section and keep address to be only increased from that point. We also should give jitlink to get information about global section. The relocation is only used for debug and tls info which we don't support yet anyways, so just stubbing it for now.

Reviewed By: lhames

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


Compare: https://github.com/llvm/llvm-project/compare/156c0754bc2e...9381de095261


More information about the All-commits mailing list