[all-commits] [llvm/llvm-project] ba0617: [ELF] Move TLS mismatch error from Symbol::replace...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Feb 23 20:35:00 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba061713d3103c1f84312901d7ad29f39a700616
      https://github.com/llvm/llvm-project/commit/ba061713d3103c1f84312901d7ad29f39a700616
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M lld/ELF/InputFiles.cpp
    M lld/ELF/Symbols.h
    M lld/test/ELF/tls-mismatch.s

  Log Message:
  -----------
  [ELF] Move TLS mismatch error from Symbol::replace to postParse

* detect `def_tls.o undef_nontls.o` violation
* place error checking code (checking duplicate symbol) together
* allow `--defsym tls1=tls2 def_tls.o`

As a degraded error checking, `--defsym tls1=42` violation will not be detected.




More information about the All-commits mailing list