[all-commits] [llvm/llvm-project] df54f6: [ELF] Enhance --no-allow-shlib-undefined for non-e...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Mar 29 23:37:13 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: df54f627fad789ccb11c72a9fddf116decbeba0e
https://github.com/llvm/llvm-project/commit/df54f627fad789ccb11c72a9fddf116decbeba0e
Author: Fangrui Song <i at maskray.me>
Date: 2024-03-29 (Fri, 29 Mar 2024)
Changed paths:
M lld/ELF/InputFiles.cpp
M lld/test/ELF/allow-shlib-undefined.s
M lld/test/ELF/shlib-undefined-local.s
Log Message:
-----------
[ELF] Enhance --no-allow-shlib-undefined for non-exported definitions
For a DSO with all DT_NEEDED entries accounted for, if it contains an
undefined non-weak symbol that shares a name with a non-exported
definition (hidden visibility or localized by a version script), and
there is no DSO definition, we should report an error.
#70769 implemented the error when we see `ref.so def-hidden.so`. This patch
implementes the error when we see `def-hidden.so ref.so`, matching GNU
ld.
Close #86777
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list