[all-commits] [llvm/llvm-project] 4956e0: [BOLT] Fix plt relocations symbol match

Vladislav Khmelevsky via All-commits all-commits at lists.llvm.org
Tue Apr 5 06:01:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4956e0e19763d9515f970d2e5aaf77256ff298fe
      https://github.com/llvm/llvm-project/commit/4956e0e19763d9515f970d2e5aaf77256ff298fe
  Author: Vladislav Khmelevsky <och95 at yandex.ru>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M bolt/CMakeLists.txt
    M bolt/include/bolt/Core/BinaryContext.h
    M bolt/lib/Rewrite/RewriteInstance.cpp
    A bolt/test/AArch64/Inputs/plt-gnu-ld.yaml
    M bolt/test/AArch64/lit.local.cfg
    A bolt/test/AArch64/plt-gnu-ld.test
    A bolt/test/AArch64/plt-lld.test
    A bolt/test/Inputs/plt.c
    A bolt/test/Inputs/stub.c
    A bolt/test/Inputs/stub.h
    M bolt/test/lit.cfg.py
    M bolt/test/lit.site.cfg.py.in
    R bolt/test/runtime/AArch64/iplt.c
    R bolt/test/runtime/AArch64/plt.c
    A bolt/test/runtime/iplt.c
    A bolt/test/runtime/plt-gnu-ld.test
    A bolt/test/runtime/plt-lld.test

  Log Message:
  -----------
  [BOLT] Fix plt relocations symbol match

The bfd linker adds the symbol versioning string to the symbol name in symtab.
Skip the versioning part in order to find the registered PLT function.

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

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




More information about the All-commits mailing list