Date: Wed, 01 May 2019 03:44:51 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 237676] [Minor] LLD Filesize and default option suggestions Message-ID: <bug-237676-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237676 Bug ID: 237676 Summary: [Minor] LLD Filesize and default option suggestions Product: Base System Version: 12.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pprocacci@gmail.com The .comment section added by lld should be removed and made optional. The file size using lld is unacceptable (some still use assembly) for embed= ded stuff. The default is 1200% larger by default and should be minimal like g= nu ld. # /usr/local/bin/ld -s -o porcupine porcupine.o # ld --discard-all -o porcupine.lld -m elf_amd64_fbsd porcupine.o # strip porcupine.lld # objcopy --remove-section .comment porcupine.lld # ls -l porcupine porcupine.lld -rwxr-xr-x 1 root wheel 352 Apr 30 23:41 porcupine -rwxr-xr-x 1 root wheel 4320 Apr 30 23:41 porcupine.lld Specifying `-m elf_amd64_fbsd` or similar shouldn't be necessary and should= be the default (depending on platform). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237676-227>