[Top][All Lists]

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

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

From: nickc at redhat dot com
Subject: [Bug ld/2607] linker doesn't recognize an ELF library.
Date: 10 May 2006 12:23:20 -0000

------- Additional Comments From nickc at redhat dot com  2006-05-10 12:23 
Subject: Re:  linker doesn't recognize an ELF library.

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 


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
        (elf_object_p): Use valid_section_index_p.



------- 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]