[all-commits] [llvm/llvm-project] a3e975: Fixes handling logic for i386/ELF GOTPC relocation

Kshitij Jain via All-commits all-commits at lists.llvm.org
Fri Jan 13 21:02:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3e975d42efa2ec1349c1a3ce203d78bbd7ee10d
      https://github.com/llvm/llvm-project/commit/a3e975d42efa2ec1349c1a3ce203d78bbd7ee10d
  Author: Kshitij Jain <jkshtj at outlook.com>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

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

  Log Message:
  -----------
  Fixes handling logic for i386/ELF GOTPC relocation

The i386/ELF JITLink backend was not correctly handling the GOTPC relocation
by skipping the in-built addend, which was manifesting itself in the form of
a segmentation fault in the `LF_external_to_absolute_conversion.s` test. This
CR has fixed that issue.

Reviewed By: lhames

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




More information about the All-commits mailing list