[lld] [lld][ELF] Demote symbols in discarded sections to Undefined. (PR #68777)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 14 15:00:54 PDT 2023


================
@@ -0,0 +1,14 @@
+# REQUIRES: x86
----------------
MaskRay wrote:

Rebase on top of 557299c9b6464f27968904aad5429cfb1512434e

`weakref1` is test case about a symbol defined in a discarded section (`/DISCARD/`) that is weak referenced. It's controversial whether we should report an error. Since our implementation reports an error and GNU ld reports an error as well, reporting an error seems fine.

https://github.com/llvm/llvm-project/pull/68777


More information about the llvm-commits mailing list