[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Native gcc 4.4.1 and binutils 2.19.1



Eero Tamminen wrote:
Btw. On Debian stripping is done by the packaging tools Debhelper dh_strip
script which automatically does the right thing.  It also automatically puts
the debug symbols to a separate debug symbols file (/usr/lib/debug/<path to
corresponding binary>) and adds the debug symbol file path & CRC to
the binary's .gnu_debuglink section when so requested (with "--dbg-package=<package name>"dh_strip option).

Gdb etc. will then automatically find the debug symbols if they're installed
and one doesn't need to have two sets of binaries, one with debug symbols
and ones without.

Doesn't MiNT RPM & related tools support anything like this?

Unfortunately no because the MiNT executables are actually a flavour of
a.out which does not support extra sections like .gnu_debuglink
It might be possible if the executable format would be extended to look
more or less like ELF.

--
Vincent Rivière