bug-binutils
[Top][All Lists]
Advanced

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

Re: [Bug ld/2607] linker doesn't recognize an ELF library.


From: Nick Clifton
Subject: Re: [Bug ld/2607] linker doesn't recognize an ELF library.
Date: Wed, 10 May 2006 13:23:10 +0100
User-agent: Thunderbird 1.5 (X11/20051201)

Hi Pawel,

I will attach the three different shared objects, in the event that some
maintainer has access to an appropriate Solaris/Sparc system and can determine
what the issue is.

Thanks. That has allowed me to locate the problem. The libbug.so.CC file has a section named .exception_ranges which has an link value of 0xFF00. Normally the link value should be a valid index into the section table in the ELF binary, and the BFD library was detecting this discrepancy and treating the file as invalid. The bug however was that certain other special values are allowed in the index field. Namely values in the range of SHN_LOPROC (0xFF00) to SHN_HIOS (0xFF3F).

So please could you try out the uploaded patch which I hope will correct the problem. It certainly works for me using libbug.so.CC file that you supplied.

Cheers
  Nick

bfd/ChangeLog
2006-05-10  Nick Clifton  <address@hidden>

        PR ld/2607
        * elfcode.h (valid_section_index_p): New function: Checks for a
        valid section index.  Allows indicies in the range SHN_LOPROC to
        SHN_HIOS.
        (elf_object_p): Use valid_section_index_p.





reply via email to

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