[all-commits] [llvm/llvm-project] 8eb68d: [BOLT] Handle broken .dynsym in stripped binaries

Huan Nguyen via All-commits all-commits at lists.llvm.org
Fri Jul 22 11:24:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8eb68d92d4d001abce9be91dce98f8ed7d70fa3c
      https://github.com/llvm/llvm-project/commit/8eb68d92d4d001abce9be91dce98f8ed7d70fa3c
  Author: Huan Nguyen <nhuhuan at yahoo.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M bolt/lib/Rewrite/RewriteInstance.cpp
    A bolt/test/X86/Inputs/broken_dynsym.yaml
    A bolt/test/X86/broken_dynsym.test

  Log Message:
  -----------
  [BOLT] Handle broken .dynsym in stripped binaries

Strip tools cause a few symbols in .dynsym to have bad section index.
This update safely keeps such broken symbols intact.

Test Plan:
```
ninja check-bolt
```

Reviewed By: Amir

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




More information about the All-commits mailing list