This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gc-sections & debug info
On Wed, Aug 27, 2003 at 06:12:19PM -0700, Jafa wrote:
> Presumably every port has the same problem with gc-sections, some ports
> support a form of relaxation, and many ports support more than one type of
> debug output. Are there a set of functions for adjusting/manipulating debug
> info in the linker?
See elf_bfd_discard_info.
> In the ip2k relax code we directly hack the stabs info - the other ports I
> looked at don't seam to do anything to fix the debug info so I assume that
> they will have problems with the line numbers not lining up if they try to
> debug.
It's possible that the ip2k relax code is confusing the generic stab
discard code.
--
Alan Modra
IBM OzLabs - Linux Technology Centre