This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gc-sections & debug info


Hi Alan,

Thanks for the elf_bfd_discard_info tip - I added "TEMPLATE_NAME=elf32" to
the elf32ip2k.sh file and it now runs the discard_info code.

Is this a reasonable fix or should I be looking at things more carefully?

Thanks

Nick

----- Original Message ----- 
From: "Alan Modra" <amodra@bigpond.net.au>
To: "Jafa" <jafa@silicondust.com>
Cc: <binutils@sources.redhat.com>
Sent: Wednesday, August 27, 2003 6:52 PM
Subject: Re: gc-sections & debug info


> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> 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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]