[all-commits] [llvm/llvm-project] 498151: [ELF] SharedFile::parse: make versym handling more...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Sep 4 16:21:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 498151d94461be5516cc9f269d691c894af2452f
      https://github.com/llvm/llvm-project/commit/498151d94461be5516cc9f269d691c894af2452f
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-09-04 (Sun, 04 Sep 2022)

  Changed paths:
    M lld/ELF/InputFiles.cpp

  Log Message:
  -----------
  [ELF] SharedFile::parse: make versym handling more precise

VER_NDX_LOCAL/VER_NDX_GLOBAL cannot be hidden, so we can compare them with
versyms[i] instead of versyms[i] & ~VERSYM_HIDDEN. In the presence of an error,
we can suppress addSymbol.




More information about the All-commits mailing list