This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/13945] New: RUNPATH behaviour is not transitive


http://sourceware.org/bugzilla/show_bug.cgi?id=13945

             Bug #: 13945
           Summary: RUNPATH behaviour is not transitive
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
        AssignedTo: unassigned@sourceware.org
        ReportedBy: mitya@mageia.org
    Classification: Unclassified


If only DT_RPATH is used, the DSO chain is traced up to the root (normally an
executable), and thus DT_RPATH of the root module is honoured. With DT_RUNPATH,
it is not; see _dl_map_object in elf/dl-load.c.

That's why if DT_RUNPATH is present, indirect DSO loading from a non-standard
path won't work, for example, if using GModule from GLib. (Even if the correct
DT_RPATH is present, it will be overridden and invalidated by DT_RUNPATH.)

GNOME bug #670477 is an example of such situation. In order to make shell
extensions load, we need to make sure that the "--enable-new-dtags" ld flag is
not used.

https://bugzilla.gnome.org/show_bug.cgi?id=670477

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]