bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/23295] New: Shared libraries cannot be searched for on some op


From: bcallah at openbsd dot org
Subject: [Bug gold/23295] New: Shared libraries cannot be searched for on some operating systems (e.g. OpenBSD)
Date: Fri, 15 Jun 2018 22:00:58 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23295

            Bug ID: 23295
           Summary: Shared libraries cannot be searched for on some
                    operating systems (e.g. OpenBSD)
           Product: binutils
           Version: 2.30
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: bcallah at openbsd dot org
                CC: ian at airs dot com
  Target Milestone: ---

Hi --

On OpenBSD (at least), shared libraries are in the form libname.so.X.Y, where X
and Y are both versioned symbol numbers. As I understand gold's code in
fileread.cc, Input_file::find_file, if you are not linking statically gold will
take each -lname given to it, construct a libname.so and libname.a, and push
both onto the search list.

This setup does not work for OpenBSD, since there are no bare libname.so shared
libraries (with rare exception) gold can never find the shared libraries. I
intend to eventually prepare a patch that would permit adding libname.so.X.Y
(and likely also libname.so.X as well in case any systems use that scheme) to
the search list but am submitting the bug report now in case it is in fact easy
enough for someone else to just do it.

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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