Elf Header sh_addr field not according to spec
Daniel Jacobowitz
drow@mvista.com
Thu Apr 4 08:46:00 GMT 2002
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
More information about the Binutils
mailing list