m68k: binfmt flat configuration fixes
PATCH 1/1 m68k: binfmt flat configuration fixes
The situation looks like following for elf2flt and binfmt FLAT:
Only gcc for m68k implements -msep-data (BR2_BINFMT_FLAT_SEP_DATA) so we should depend on m68k. When the default (BR2_BINFMT_FLAT_ONE) is used on m68k, broken binaries are produced, which mainly end up in SIGILL, so do not use it for m68k.
--- arch/Config.in | 2 ++ 1 file changed, 2 insertions(+)
arch/Config.in +2 -0
@@ -360,11 +360,13 @@ choice config BR2_BINFMT_FLAT_ONE bool "One memory region" + depends on !BR2_m68k help All segments are linked into one memory region. config BR2_BINFMT_FLAT_SEP_DATA bool "Separate data and code region" + depends on BR2_m68k help Allow for the data and text segments to be separated and placed in different regions of memory.
Signature · 1 line
2.1.4
PATCH 1/1 m68k: binfmt flat configuration fixes
Hello,
Quoted 5 lines · Waldemar Brodkorb
arch/Config.in +0
-0
arch/Config.in choice · line 369
Quoted 10 lines
arch/Config.in +2
-0@@ -360,11 +360,13 @@ choice config BR2_BINFMT_FLAT_ONE bool "One memory region" + depends on !BR2_m68k help All segments are linked into one memory region. config BR2_BINFMT_FLAT_SEP_DATA bool "Separate data and code region" + depends on BR2_m68k
Are you sure? I think sep-data is also available on Blackfin. From the gcc documentation:
_Blackfin Options_
-mcpu=CPU[-SIREVISION]
-msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library -mno-id-shared-library -mshared-library-id=N -mleaf-id-shared-library -mno-leaf-id-shared-library -msep-data -mno-sep-data -mlong-calls -mno-long-calls -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram -micplb
Also, what about ARM noMMU ?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 m68k: binfmt flat configuration fixes
Hi Thomas,
Thomas Petazzoni wrote,
Quoted 16 lines
Hello,
Quoted 12 lines · Waldemar Brodkorb
arch/Config.in +1
-0@@ -360,11 +360,13 @@ choice config BR2_BINFMT_FLAT_ONE bool "One memory region" + depends on !BR2_m68k help All segments are linked into one memory region.
Quoted 6 lines
arch/Config.in choice · line 369
Quoted 3 lines
arch/Config.in +1
-0config BR2_BINFMT_FLAT_SEP_DATA bool "Separate data and code region" + depends on BR2_m68kAre you sure? I think sep-data is also available on Blackfin. From the gcc documentation:
You are right, sorry I somehow remembered the situation wrongly.
Quoted 11 lines
_BlackfinOptions_
-mcpu=CPU[-SIREVISION]
-msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library -mno-id-shared-library -mshared-library-id=N -mleaf-id-shared-library -mno-leaf-id-shared-library -msep-data -mno-sep-data -mlong-calls -mno-long-calls -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram -micplb
Quoted 1 line
Also, what about ARM noMMU ?
No -msep-data :)
best regards
Waldemar