Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/44x: Remove STDBINUTILS kconfig option

STDBINUTILS is just a toggle to allow 256k page size to appear in the
possible page sizes list for the 44x.

Make 256k page size option appear all the time with an explicit
warning about binutils, and remove this unnecessary STDBINUTILS
config option.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Incorporate help text changes from David Laight]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f9981e819009aa121a998dc483052ec76f78f991.1611128938.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
4eeef098 910a0cb6

+6 -20
+6 -20
arch/powerpc/Kconfig
··· 716 716 def_bool y 717 717 depends on MEMORY_HOTPLUG 718 718 719 - config STDBINUTILS 720 - bool "Using standard binutils settings" 721 - depends on 44x 722 - default y 723 - help 724 - Turning this option off allows you to select 256KB PAGE_SIZE on 44x. 725 - Note, that kernel will be able to run only those applications, 726 - which had been compiled using binutils later than 2.17.50.0.3 with 727 - '-zmax-page-size' set to 256K (the default is 64K). Or, if using 728 - the older binutils, you can patch them with a trivial patch, which 729 - changes the ELF_MAXPAGESIZE definition from 0x10000 to 0x40000. 730 - 731 719 choice 732 720 prompt "Page size" 733 721 default PPC_4K_PAGES ··· 755 767 select HAVE_ARCH_SOFT_DIRTY if PPC_BOOK3S_64 756 768 757 769 config PPC_256K_PAGES 758 - bool "256k page size" 759 - depends on 44x && !STDBINUTILS && !PPC_47x 770 + bool "256k page size (Requires non-standard binutils settings)" 771 + depends on 44x && !PPC_47x 760 772 help 761 773 Make the page size 256k. 762 774 763 - As the ELF standard only requires alignment to support page 764 - sizes up to 64k, you will need to compile all of your user 765 - space applications with a non-standard binutils settings 766 - (see the STDBINUTILS description for details). 767 - 768 - Say N unless you know what you are doing. 775 + The kernel will only be able to run applications that have been 776 + compiled with '-zmax-page-size' set to 256K (the default is 64K) using 777 + binutils later than 2.17.50.0.3, or by patching the ELF_MAXPAGESIZE 778 + definition from 0x10000 to 0x40000 in older versions. 769 779 770 780 endchoice 771 781