Incomplete 64K section support

H. J. Lu hjl@lucon.org
Sat Mar 27 08:14:00 GMT 2004


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 was wrong. There is no need to adjust. We just keep a whole from
SHN_LORESERVE to SHN_HIRESERVE so that index is OK.


H.J.



More information about the Binutils mailing list