[Bug backends/26176] New: Backend modules of elfutils are always linked to shared library

madebr at gmail dot com sourceware-bugzilla@sourceware.org
Fri Jun 26 12:51:36 GMT 2020


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

            Bug ID: 26176
           Summary: Backend modules of elfutils are always linked to
                    shared library
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: backends
          Assignee: unassigned at sourceware dot org
          Reporter: madebr at gmail dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

The backend modules of elfutils are always linked to the shared libelf.so
library.

Assume an application links to a static libelf.a library.
When this application loads a backend library, some symbols are present twice:
once in the libelf.so and once in the static user application.

This effectively makes using the static libraries undefined behaviour.

I've googled around a bit how others solve this and found this:
https://discourse.cmake.org/t/static-libraries-and-loadable-modules/1176

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


More information about the Elfutils-devel mailing list