[all-commits] [llvm/llvm-project] 2bdad1: [ELF] SymbolTable::insert: keep @@ in the name

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Dec 15 15:19:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bdad16303f4f0d716ebc2c12beb24ea50649639
      https://github.com/llvm/llvm-project/commit/2bdad16303f4f0d716ebc2c12beb24ea50649639
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M lld/ELF/InputFiles.cpp
    M lld/ELF/SymbolTable.cpp
    M lld/ELF/Symbols.cpp
    M lld/test/ELF/symver-archive.s

  Log Message:
  -----------
  [ELF] SymbolTable::insert: keep @@ in the name

* Avoid the name truncation quirk in SymbolTable::insert: the truncated name will be replaced by @@ again.
* Allow foo and foo@@v1 in different files to be diagnosed as duplicate definition error (GNU ld behavior)
* Avoid potential redundant strlen on symbol name due to StringRefZ in ObjFile<ELFT>::initializeSymbols




More information about the All-commits mailing list