diff options
author | Ed Maste <emaste@FreeBSD.org> | 2025-08-28 12:48:17 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2025-08-28 13:07:13 +0000 |
commit | 959806e0a8448ef5df372468b8deddc20d976702 (patch) | |
tree | a880962cb066ac5c563a07468b4217b86e6a39a4 /lib/lib80211/lib80211_regdomain.h | |
parent | e6253eac1ab346d70db79d638c200bffa65cae02 (diff) |
--discard-locals/--discard-all: allow and keep symbols referenced by relocations
In GNU objcopy, symbols referenced by relocations are retained. Our
COFF (https://reviews.llvm.org/D56480) and Mach-O
(https://reviews.llvm.org/D75104) ports port the behavior, but the ELF
port doesn't.
This PR implements the behavior for ELF.
Close #47468 (tcl has a use case that requires `strip -x tclStubLib.o`
to strip local symbols not referenced by relocations.)
Pull Request: https://github.com/llvm/llvm-project/pull/130704
PR: 258820
Approved by: dim
Differential Revision: https://reviews.freebsd.org/D52198
Diffstat (limited to 'lib/lib80211/lib80211_regdomain.h')
0 files changed, 0 insertions, 0 deletions