Re: [patch] Fix uninitialized section index internal error

Elena Zannoni
2001-06-28T20:17:00Z

Joel Brobecker writes:
> > Sorry, but we are trying to move away from having gdb knowing that
> > some sections are special. Adding a new SECT_OFF_SBSS macro, would not
> > be in line with that. Would you mind just doing that bit I suggested?
> > That would solve your immediate problem, right?
>
> Elena,
>
> I implemented your suggestion, but I stumbled accross another problem
> that puzzled me.
>
> the program that I provided as an example to reproduce the problem
> does in fact contain some symbols located in the .bss section ('end' for
> instance), but gdb could had not located it. I verified this by using nm:
>
> List of symbols in the .bss section:
> <<
> % nm -B mach | grep ' B '
> 0x00000140000160 B .bss
> 0x00000140000160 B _ebss
> 0x00000140000160 B _end
> 0x00000140000160 B end
> >>
>
> List of symbols in the .sbss section:
> <<
> % nm -B mach | grep ' S '
> 0x00000140000140 S .sbss
> 0x00000140000140 S __Argc
> 0x00000140000158 S __Argv
> 0x00000140000150 S _auxv
> 0x00000140000140 S _fbss
> 0x00000140000148 S _ldr_present
> >>
>
> Unfortunately, I don't have enough time to persue this right now. In
> think my changes improve a bit the current situation, but do not fix all
> problems, so I'm not sure they should be submitted yet.

Hmm, I think that if your changes are an improvement, and don't break
anything else, it is worth including them in the sources, so they
don't get lost.

>
> I'll look into why gdb can not find this .bss section when I have more time
> available.
>

Thanks for doing this.

Elena

> --
> Joel
>