[haiku-bugs] Re: [Haiku] #12214: [runtime_loader] can't find libgcc_s.so.1 when LD_PRELOAD is used

  • From: "diver" <trac@xxxxxxxxxxxx>
  • Date: Sat, 03 Oct 2015 13:35:38 -0000

#12214: [runtime_loader] can't find libgcc_s.so.1 when LD_PRELOAD is used
-------------------------------------+----------------------------
Reporter: diver | Owner: zooey
Type: bug | Status: assigned
Priority: normal | Milestone: Unscheduled
Component: System/runtime_loader | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------------+----------------------------

Comment (by diver):

Interestingly, copying the following libs:
{{{
/system/lib/x86/libgcc_s.so.1
/system/lib/x86/libroot_debug.so
}}}

into a lib folder next to an examined binary and invoking
{{{LD_PRELOAD=lib/libroot_debug.so mpv-x86}}} seem to work.
However, this doesn't seems to work for Web+ as I get:
{{{
runtime_loader: /boot/system/lib/x86/libsupc++.so: Could not resolve
symbol '___tls_get_addr'
resolve symbol "___tls_get_addr" returned: -2147478780
runtime_loader: /boot/system/lib/x86/libsupc++.so: Troubles relocating:
Symbol not found
}}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/12214#comment:15>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: