[all-commits] [llvm/llvm-project] 1737cc: [LLD] [COFF] Don't error out on duplicate absolute...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Sat Jan 4 02:34:55 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1737cc750c464b454ec14b397ce1b7cf504e17a7
      https://github.com/llvm/llvm-project/commit/1737cc750c464b454ec14b397ce1b7cf504e17a7
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-01-04 (Sat, 04 Jan 2020)

  Changed paths:
    M lld/COFF/SymbolTable.cpp
    M lld/COFF/Symbols.h
    A lld/test/COFF/duplicate-absolute-same.s
    M lld/test/COFF/duplicate-absolute.s

  Log Message:
  -----------
  [LLD] [COFF] Don't error out on duplicate absolute symbols with the same value

Both MS link.exe and GNU ld.bfd handle it this way; one can have
multiple object files defining the same absolute symbols, as long
as it defines it to the same value. But if there are multiple absolute
symbols with differing values, it is treated as an error.

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




More information about the All-commits mailing list