bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/5900] ELF files with more than 65536 sections not handled corre


From: hjl dot tools at gmail dot com
Subject: [Bug gas/5900] ELF files with more than 65536 sections not handled correctly.
Date: 10 Mar 2008 02:24:09 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2008-03-10 
02:24 -------
(In reply to comment #2)
> You seem to be trying to say that section indexes between SHN_LORESERVE and
> SHN_HIRESERVE are not to be used.  However, there is no support for that in 
> the
> ELF spec.  And it is not required to make everything work.

I said quite opposite. See comment #1. Section index 0xfff2 is between
SHN_LORESERVE and SHN_HIRESERVE. Here "section index" may not be the
index into section header table.

> 
> Also, providing an example with st_shndx proves little, since I was making a
> point about the sh_link section in section number zero.  The ELF spec does not
> say "add 256 to section indexes."  It just says to use the section index.
> 
> What does icc produce with the sample source code?

There are 70005 section headers, starting at offset 0x484bdc:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 011175 00      0   0  0
  [ 1] .strtab           STRTAB          00000000 000034 194bef 00      0   0  1

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5900

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]