|
What causes 'BINFMT_FLAT: bad magic/rev (0xZZ, need 0xYY)' errors
|
Login/Create an Account
| Top
| 2 comments
|
Search Discussion
|
|
|
|
The Fine Print:
The following comments are owned by whoever posted them.
We are not responsible for them in any way.
|
 |
|
 |
 |
|
 |
 |
 |
|
A nice explanation of the bFLT file format can be found here:
http://www.beyondlogic.org/uClinux/bflt.htm
|
|
 |
 |
|
|
[ Parent
]
|
|
|
 |
|
 |
 |
|
 |
 |
 |
The old 68k COFF toolchains didn't need anything
special on the link line (or any extra processing)
to make bFLT executables. Everything was done
on in the ld wrapper script.
The trick is sort of a side effect of having a
seperate toolchain for position independant
code and one for flat code. Since fixed position
code (like bootloaders or kernels) are linked with
m68k-coff-ld and bFLT executables are linked with
m68k-pic-coff-ld, it's fine to have it's default
behaviour be to generate bFLT. On the other hand,
the newer ELF toolchains use (for instance)
m68k-elf-ld for fixed, PIC and relocated, a
flag is used to specifiy behaviour.
|
|
 |
 |
|
|
[ Parent
]
|
|
|