[Bug 258820] Multiple ports fail to build with USE_LTO: libffi.a strip: file format not recognized (propose: disable building static library)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 258820] devel/libffi: disable building static library"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Aug 2025 13:10:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258820
--- Comment #18 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=959806e0a8448ef5df372468b8deddc20d976702
commit 959806e0a8448ef5df372468b8deddc20d976702
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-08-28 12:48:17 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-08-28 13:07:13 +0000
Merge commit 7a66a26658f4 from llvm git (by Fangrui Song):
--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
.../llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp | 25 +++++++++++-----------
1 file changed, 13 insertions(+), 12 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.