]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: Get rid of Makefile.postlink
authorArd Biesheuvel <ardb@kernel.org>
Tue, 11 Mar 2025 11:06:21 +0000 (12:06 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 16 Mar 2025 15:29:50 +0000 (00:29 +0900)
commite6a03a666995a6b64cd8a28cb5e5b9c6a162444a
tree4ed26e3b4248638cda224ff1a61df806ac4a236f
parentac4f06789b4f9c17357e81e918879c6e2ffdd075
x86: Get rid of Makefile.postlink

Instead of generating the vmlinux.relocs file (needed by the
decompressor build to construct the KASLR relocation tables) as a
vmlinux postlink step, which is dubious because it depends on data that
is stripped from vmlinux before the build completes, generate it from
vmlinux.unstripped, which has been introduced specifically for this
purpose.

This ensures that each artifact is rebuilt as needed, rather than as a
side effect of another build rule.

This effectively reverts commit

  9d9173e9ceb6 ("x86/build: Avoid relocation information in final vmlinux")

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/x86/Makefile.postlink [deleted file]
arch/x86/boot/compressed/Makefile