This is the mail archive of the
mailing list for the binutils project.
Re: Elf Header sh_addr field not according to spec
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Mike_Sorensen at arium dot com
- Cc: Alan Modra <amodra at bigpond dot net dot au>, binutils at sources dot redhat dot com
- Date: Thu, 4 Apr 2002 11:46:34 -0500
- Subject: Re: Elf Header sh_addr field not according to spec
- References: <88256B91.005BA35C.email@example.com>
On Thu, Apr 04, 2002 at 08:40:55AM -0800, Mike_Sorensen@arium.com wrote:
> >> Is there someone out there that can tell me why there is a number in the ELF
> >> section header for the .debug_abbrev section and why it is important in gcc
> >> 2.9 and unimportant in gcc 3.0?
> >It was likely a binutils bug, now fixed. Probably nothing to do with gcc,
> >but you used a different version of binutils for each of your gcc versions.
> I wasn't using binutils to see this discrepancy between what is in the
> section header and what the ELF spec says should be in there. I can see
> the problem through bit dumps of the ELF executable. Since this is not
> a problem with binutils, do you know of a better place to ask my question.
No, what Alan (?) said was that you probably used a different version
of the linker to create the ELF executable. The later behavior is
correct and current; if you want the .debug_abbrev information, you
need to get it out of the .debug_info CU headers. There's at least
SGI's libdwarf and some code in readelf or gdb to help you do this.
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer