[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] strip
Hello.
Some remarks about the "strip" program.
strip-2.13 (installed by EasyMiNT) is potentially broken. It makes
assumptions about sizes and alignments which are only valid for
executables built with ld-2.13.
I cleaned up the linker code in binutils 2.18. The executables produced
by ld-2.18 are perfectly clean. They can be run without any problem with
MiNT, TOS, and the gdb-5.0 binary provided by EasyMiNT.
The rules are:
1) Do not use strip-2.13 on anything other than executables produced by
ld-2.13. Especially, strip-2.13 will kill executables built with ld-2.18
(bus error at startup).
2) You can use strip-2.18 on any executable in the MiNT extended file
format. It will work as expected on executables produced by ld-2.13 and
ld-2.18
3) By design, strip can only work on executables in the MiNT extended
file format. It will fail with "unrecognized file format" with
executables built with ld --traditional-format, or executables built
with non-gnu tools like PureC or Devpac. However, with that traditional
executables, you can use the cstrip program provided in the mintbin package.
--
Vincent Rivière