[all-commits] [llvm/llvm-project] 210140: [JITLink] Add support for R_X86_64_SIZE* relocatio...

Xing Guo via All-commits all-commits at lists.llvm.org
Tue Oct 15 18:43:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 210140ab6ac8126e5beec65209602cd55c4d09c7
      https://github.com/llvm/llvm-project/commit/210140ab6ac8126e5beec65209602cd55c4d09c7
  Author: Xing Guo <higuoxing+github at gmail.com>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/JITLink/x86_64.h
    M llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
    M llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
    A llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_SIZE.s

  Log Message:
  -----------
  [JITLink] Add support for R_X86_64_SIZE* relocations. (#110081)

This patch adds support for R_X86_64_SIZE32/R_X86_64_SIZE64 relocation
types by introducing edge kinds x86_64::Size32/x86_64::Size64. The
calculation for these relocations is: Z + A, where:

Z - Represents the size of the symbol whose index resides in the
    relocation entry.

A - Represents the addend used to compute the value of the relocation
    field.

Ref: [System V Application Binary Interface
x86-64](https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list