This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Fix uninitialized section index internal error
- To: Joel Brobecker <brobecker at act-europe dot fr>
- Subject: Re: [RFA] Fix uninitialized section index internal error
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 28 Jun 2001 00:05:47 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <20010607150845.C24983@act-europe.fr>
Just FYI, I'm cleaning out my MBOX. I'm going to assume this patch is
dead. If my memory is correct the symtab people are trying to eliminate
knwledge about magic ``.bss'' sections, not clone it :-)
Andrew
> Index: gdb/symfile.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/symfile.c,v
> retrieving revision 1.31
> diff -c -3 -p -r1.31 symfile.c
> *** symfile.c 2001/04/05 02:02:13 1.31
> --- symfile.c 2001/05/10 19:41:39
> *************** default_symfile_offsets (struct objfile
> *** 529,534 ****
> --- 529,536 ----
> objfile->sect_index_data = sect->index;
>
> sect = bfd_get_section_by_name (objfile->obfd, ".bss");
> + if (!sect)
> + sect = bfd_get_section_by_name (objfile->obfd, ".sbss");
> if (sect)
> objfile->sect_index_bss = sect->index;
>
>