This is the mail archive of the
mailing list for the binutils project.
Re: Elf Header sh_addr field not according to spec
- From: Mike_Sorensen at arium dot com
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: Alan Modra <amodra at bigpond dot net dot au>,binutils at sources dot redhat dot com
- Date: Thu, 4 Apr 2002 09:57:18 -0800
- Subject: Re: Elf Header sh_addr field not according to spec
>> >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.
Upon further study of the 2.9 binaries we generated, the problem is likely some
linker scripts we were using. We will look into fixing those scripts to see
if we can massage the 2.9 generated binaries into compliance with the ELF spec.