[LLD] [COFF] Don't error out on duplicate absolute symbols with the same value
authorMartin Storsjö <martin@martin.st>
Sun, 29 Dec 2019 22:32:22 +0000 (00:32 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 4 Jan 2020 10:29:33 +0000 (12:29 +0200)
commit1737cc750c464b454ec14b397ce1b7cf504e17a7
treefcf89e66dcd99c512e6e05358b2625ec061e83ec
parent2306f43ccb46627b92aa0bb48b96437984c50c01
[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
lld/COFF/SymbolTable.cpp
lld/COFF/Symbols.h
lld/test/COFF/duplicate-absolute-same.s [new file with mode: 0644]
lld/test/COFF/duplicate-absolute.s