[all-commits] [llvm/llvm-project] 888742: [BOLT][AArch64] Handle .plt.got section (#71216)

Vladislav Khmelevsky via All-commits all-commits at lists.llvm.org
Fri Nov 3 13:47:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 888742a12119b46190642ce521367e0531196e3b
      https://github.com/llvm/llvm-project/commit/888742a12119b46190642ce521367e0531196e3b
  Author: Vladislav Khmelevsky <och95 at yandex.ru>
  Date:   2023-11-04 (Sat, 04 Nov 2023)

  Changed paths:
    M bolt/include/bolt/Rewrite/RewriteInstance.h
    M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
    A bolt/test/AArch64/Inputs/plt-got.yaml
    A bolt/test/AArch64/plt-got.test

  Log Message:
  -----------
  [BOLT][AArch64] Handle .plt.got section (#71216)

It seems that currently this section is only created by the mold linker
if 2 conditions are met: 1. The PLT function was called directly. 2. The
indirect access to PLT function was found (e.g. through ADRP
relocation). Although mold created symbol for every plt entry I've
removed them in yaml file to check that .plt.got was truly disassembled
by bolt.




More information about the All-commits mailing list