[Bug 264433] installkernel produces /boot/kernel directory over 500MB in size

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 Jun 2022 13:48:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264433

--- Comment #5 from Eugene Grosbein <eugen@freebsd.org> ---
I'm afraid the following merge to stable/13 created the problem:

https://cgit.freebsd.org/src/commit/?h=stable/13&id=177466dac805df0271511a0d7cd3152a467820c6

I compared zfs.ko.meta for this problematic system and another my stable/13
(earlier) system that does not have the problem and found the difference.

"Normal" system has this:

CMD ld -m elf_x86_64_fbsd -d -warn-common --build-id=sha1 -T
/usr/src/sys/conf/ldscript.kmod.amd64 -r -d  -o zfs.ko ...

Note second "-d" flag. And newer after-commit problematic one has this:

CMD ld -m elf_x86_64_fbsd -d -warn-common --build-id=sha1 -T
/home/src/sys/conf/ldscript.kmod.amd64 -r  -o zfs.ko ...

Note that second -d is missing.

-- 
You are receiving this mail because:
You are the assignee for the bug.