Skip to content

Commit

Permalink
Restrict flat format to architectures that support it
Browse files Browse the repository at this point in the history
Fixes #878

Signed-off-by: Alexey Neyman <stilor@att.net>
  • Loading branch information
stilor committed Dec 1, 2018
1 parent c34fe6e commit d1910b9
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/arch/arm.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
## select ARCH_DEFAULT_32
## select ARCH_SUPPORTS_BOTH_MMU
## select ARCH_DEFAULT_HAS_MMU
## select ARCH_SUPPORTS_FLAT_FORMAT
## select ARCH_SUPPORTS_EITHER_ENDIAN
## select ARCH_DEFAULT_LE
## select ARCH_SUPPORTS_WITH_ARCH
Expand Down
1 change: 1 addition & 0 deletions config/arch/m68k.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## select ARCH_SUPPORTS_32
## select ARCH_DEFAULT_32
## select ARCH_DEFAULT_BE
## select ARCH_SUPPORTS_FLAT_FORMAT
## select ARCH_SUPPORTS_WITH_CPU
##
## help The m68k architecture
1 change: 1 addition & 0 deletions config/arch/microblaze.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
## select ARCH_DEFAULT_BE
## select ARCH_SUPPORTS_BOTH_MMU
## select ARCH_DEFAULT_HAS_MMU
## select ARCH_SUPPORTS_FLAT_FORMAT
##
## help The MicroBlaze architecture, as defined by:
## help http://www.xilinx.com/
Expand Down
1 change: 1 addition & 0 deletions config/arch/nios2.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
## select ARCH_SUPPORTS_BOTH_MMU
## select ARCH_DEFAULT_LE
## select ARCH_SUPPORTS_WITH_ARCH
## select ARCH_SUPPORTS_FLAT_FORMAT
##
## help The NIOS2 architecture, as defined by:
## help http://www.altera.com
4 changes: 3 additions & 1 deletion config/arch/sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
## no-package
## select ARCH_SUPPORTS_32
## select ARCH_DEFAULT_32
## select ARCH_USE_MMU
## select ARCH_SUPPORTS_BOTH_MMU
## select ARCH_DEFAULT_HAS_MMU
## select ARCH_SUPPORTS_FLAT_FORMAT
## select ARCH_SUPPORTS_EITHER_ENDIAN
## select ARCH_DEFAULT_LE
## select ARCH_REQUIRES_MULTILIB
Expand Down
4 changes: 3 additions & 1 deletion config/arch/sparc.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
## select ARCH_SUPPORTS_32
## select ARCH_SUPPORTS_64
## select ARCH_DEFAULT_32
## select ARCH_USE_MMU
## select ARCH_SUPPORTS_BOTH_MMU
## select ARCH_DEFAULT_HAS_MMU
## select ARCH_SUPPORTS_FLAT_FORMAT
## select ARCH_SUPPORTS_WITH_CPU
## select ARCH_SUPPORTS_WITH_TUNE
## select ARCH_SUPPORTS_WITH_FLOAT
Expand Down
1 change: 1 addition & 0 deletions config/arch/xtensa.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
## select ARCH_DEFAULT_LE
## select ARCH_SUPPORTS_BOTH_MMU
## select ARCH_DEFAULT_HAS_MMU
## select ARCH_SUPPORTS_FLAT_FORMAT

## help The xtensa architecture
## help
Expand Down
2 changes: 1 addition & 1 deletion config/binutils.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ config ARCH_BINFMT_ELF
config ARCH_BINFMT_FLAT
bool
prompt "Flat"
depends on ! ARCH_USE_MMU
depends on ! ARCH_USE_MMU && ARCH_SUPPORTS_FLAT_FORMAT
help
This will build flat binaries, suitable for
MMU-less architectures.
Expand Down
4 changes: 4 additions & 0 deletions config/target.in
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ config ARCH_USE_MMU
lacks an MMU (eg. ARM Cortex-M3), while other variants
have one (eg. ARM Cortex-A8).

#--------------------------------------
config ARCH_SUPPORTS_FLAT_FORMAT
bool

#--------------------------------------
config ARCH_SUPPORTS_EITHER_ENDIAN
bool
Expand Down

0 comments on commit d1910b9

Please sign in to comment.