]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Formalize the use of linker scripts for kernel modules.
authormarkj <markj@FreeBSD.org>
Wed, 16 Oct 2019 22:19:56 +0000 (22:19 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 16 Oct 2019 22:19:56 +0000 (22:19 +0000)
commit39a2929b65e3f8ac996125a7efa0e41f4b6212ee
treec26b86451ce83bc869f0002cc295b8d8631e0ad6
parent341d6414701997bfa91988b199346d021b3b82b0
Formalize the use of linker scripts for kernel modules.

Automatically apply ldscript.kmod.${MACHINE_ARCH} if it exists.
We already have an i386-specific linker script; rename it accordingly.

Note that the linker script is applied when the object files are
partially linked.  (For amd64 this is also the final link.)

Reviewed by: imp, kib
Discussed with: jhb
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21887
sys/conf/kmod.mk
sys/conf/ldscript.kmod.i386 [moved from sys/conf/ldscript.set_padding with 100% similarity]