This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Incomplete 64K section support


On Fri, Mar 26, 2004 at 07:40:05PM +1030, Alan Modra wrote:
> On Thu, Mar 25, 2004 at 01:24:07PM -0800, H. J. Lu wrote:
> > Hi Alan,
> > 
> > 64K section support is incomplete. The basically problem is index
> > in ELF file != index in internal BFD representation. We have to adjust
> > them for 64K when assigning one from the other. We missed a few places.
> > For example, bfd_section_from_elf_index doesn't adjust for 64K. We have
> > to make sure all st_shndx and sh_link handlings support 64K section
> > correctly.
> 
> You mean calls to bfd_section_from_elf_index need fixing, rather than
> bfd_section_from_elf_index itself.  Yes, I can see some places that
> ignore st_shndx.  Are you working on a patch?
> 

I am looking at it now. There are SECTION_HEADER_INDEX and
SECTION_HEADER_NUM in readelf.c. Should they be shared between
bfd and readelf?


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]