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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to