public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/13945] New: RUNPATH behaviour is not transitive
@ 2012-04-04 19:55 mitya at mageia dot org
  2012-04-04 21:38 ` [Bug dynamic-link/13945] " walters at verbum dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mitya at mageia dot org @ 2012-04-04 19:55 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-25 11:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04 19:55 [Bug dynamic-link/13945] New: RUNPATH behaviour is not transitive mitya at mageia dot org
2012-04-04 21:38 ` [Bug dynamic-link/13945] " walters at verbum dot org
2012-05-22 15:02 ` rsa at us dot ibm.com
2014-06-25 11:22 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).