[all-commits] [llvm/llvm-project] 4e9277: [ELF] --wrap: don't unnecessarily expose __real_

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Sep 30 20:09:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e9277eda1874ead60f2c9d7cdb558fd19b32076
      https://github.com/llvm/llvm-project/commit/4e9277eda1874ead60f2c9d7cdb558fd19b32076
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-09-30 (Wed, 30 Sep 2020)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/test/ELF/lto/wrap-1.ll

  Log Message:
  -----------
  [ELF] --wrap: don't unnecessarily expose __real_

The routing rules are:

sym -> __wrap_sym
__real_sym -> sym

__wrap_sym and sym are routing targets, so they need to be exposed to the symbol
table. __real_sym is not and can be eliminated if not used by regular object.




More information about the All-commits mailing list