[ELF] --warn-backrefs: --defsym does not make a backward reference
authorFangrui Song <i@maskray.me>
Mon, 29 Jan 2024 21:26:33 +0000 (13:26 -0800)
committerTom Stellard <tstellar@redhat.com>
Fri, 2 Feb 2024 01:40:45 +0000 (17:40 -0800)
commit2fe0bca91041eeaedd5ea530e6863f3af42bc2b0
tree9a635efe469f8cefe481b1c1d8d580960d232796
parent284570a985e95e3d8118cde2b0198bbbdc9b19ad
[ELF] --warn-backrefs: --defsym does not make a backward reference

The interaction between --warn-backrefs was not tested, but if
--defsym-created reference causes archive member extraction, it seems
reasonable to suppress the diagnostic, which was the behavior before #78944.

(cherry picked from commit 9a1ca245c8bc60b1ca12cd906fb31130801d977e)
lld/ELF/InputFiles.cpp
lld/test/ELF/warn-backrefs.s