This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Does/can ld edit .stab sections?
On Fri, Nov 02, 2001 at 10:17:10AM +0100, Jakub Jelinek wrote:
> On Fri, Nov 02, 2001 at 10:21:21AM +1030, Alan Modra wrote:
> > On Thu, Nov 01, 2001 at 11:59:47AM -0500, Daniel Jacobowitz wrote:
> > >
> > > Or perhaps to generate separate stab sections for each original section
> > > and merge them at link time?
> >
> > Yes, that is exactly what is needed. Initial support for section groups
> > has already been added to binutils, but gcc needs to be taught how to
> > tell the linker about groups. I will look into it sometime...
>
> Are you sure separate .stab.*, .eh_frame.*, .dwarf_*.* etc. sections
> are the best way to do this?
> Then we're quickly approaching the 64K section limit, if for every separate
> text section you need 10 other ones.
>
> For .stab, ld already revamps that section, so I don't see why it cannot
> handle this too (simply discard stabs which are against discarded sections).
I'm going to try to come up with a patch for this in the next couple
days, then.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer