x86/boot changes for v5.7
Linus,
Please pull the latest x86-boot-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-boot-for-linus
# HEAD: c90beea22a2bece4b0bbb39789bf835504421594 x86/boot/compressed: Fix debug_puthex() parameter type
Misc cleanups and small enhancements all around the map.
out-of-topic modifications in x86-boot-for-linus:
---------------------------------------------------
drivers/firmware/efi/libstub/Makefile# 003602ad5516: x86/*/Makefile: Use -fno-asy
Thanks,
Ingo
------------------>
Arvind Sankar (6):
x86/boot/compressed/64: Use LEA to initialize boot stack pointer x86/boot/compressed/64: Use 32-bit (zero-extended) MOV for z_output_len x86/boot/compressed/64: Remove .bss/.pgtable from bzImage x86/boot/compressed: Remove .eh_frame section from bzImage x86/*/Makefile: Use -fno-asynchronous-unwind-tables to suppress .eh_frame sections x86/vmlinux: Drop unneeded linker script discard of .eh_frame
Guenter Roeck (1):
x86/setup: Fix static memory detection
Joerg Roedel (1):
x86/boot/compressed: Fix debug_puthex() parameter type
arch/x86/boot/Makefile | 1 + arch/x86/boot/compressed/Makefile | 1 + arch/x86/boot/compressed/head_64.S | 8 +++----- arch/x86/boot/compressed/misc.h | 2 +- arch/x86/boot/setup.ld | 1 - arch/x86/include/asm/dwarf2.h | 4 ++-- arch/x86/include/asm/sections.h | 20 ++++++++++++++++++++ arch/x86/kernel/setup.c | 1 - arch/x86/kernel/vmlinux.lds.S | 7 ++----- arch/x86/realmode/rm/Makefile | 1 + arch/x86/realmode/rm/realmode.lds.S | 1 - drivers/firmware/efi/libstub/Makefile | 3 ++- 12 files changed, 33 insertions(+), 17 deletions(-)
Quoted 2 lines · Ingo Molnar
x86/*/Makefile: Use -fno-asynchronous-unwind-tables to suppress .eh_frame sections
Ugh.
Looking at that commit, wouldn't it be better to try to move in a direction where the special 32-bit code (or other stub code) simply uses the actual KBUILD_CFLAGS as a base for what they do.
For example, in that EFI case, arm64 seems to do things the right way, and this is literally the x86 code being inferior.
Both 32-bit and 64-bit arm seem to just filter out the flags that don't work for it the stub code.
And honestly, that seems to be the *much* better approach.
The x86 approach is just rewriting the the cflags from scratch inevitably has these kinds of odd special cases they it misses.
Wouldn't it be much better to try to standardize around that arm model instead?
I've pulled this, but it hurts to see these kinds of magical hackery.
Linus
Quoted 2 lines · Linus Torvalds
Wouldn't it be much better to try to standardize around that arm model instead?
Yap, as a matter of fact, this did came up recently as one thing that we should do to avoid "fixes" like that. I'll put it on my TODO list and won't be mad - at all, actually - if someone beats me to it. :-)
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteThe pull request you sent on Tue, 31 Mar 2020 09:53:05 +0200:
The pull request you sent on Tue, 31 Mar 2020 09:53:05 +0200:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gitx86-boot-for-linus
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/9589351ccf47a85a75180a430627c16bc28da929
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.wiki.kernel.org/userdoc/prtracker