public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Inconsistency detected by ld.so
@ 2017-08-31  9:53 Umesh Kalappa
  2017-08-31 13:45 ` Carlos O'Donell
  0 siblings, 1 reply; 2+ messages in thread
From: Umesh Kalappa @ 2017-08-31  9:53 UTC (permalink / raw)
  To: Binutils

Hi All ,

We build the test.so shared lib with "-z nodelete" and show below issue

open("/pkg/lib64/test.so", O_RDONLY) = -1 ENOENT (No such file or directory)

stat("/pkg/lib64", 0x7ffff6a1aad0) = -1 ENOENT (No such file or directory)

writev(2, [{"I
:"..., 33}, {"dl-open.c", 9}, {": ", 2}, {"583", 3}, {": ", 2},
{"_dl_open", 8}, {": ", 2}, {"Assertion `", 11},
{"_dl_debug_initialize (0, args.ns"..., 61}, {"' failed!\n", 10}], 10)
= 141


if we remove  "-z nodelete" option in the building the lib(test.so)
,ld.so able to load the lib .


Any suggestions here ,why ld.so failed to load with "-z nodelete" ?


Thank you
~Umeh

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

* Re: Inconsistency detected by ld.so
  2017-08-31  9:53 Inconsistency detected by ld.so Umesh Kalappa
@ 2017-08-31 13:45 ` Carlos O'Donell
  0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2017-08-31 13:45 UTC (permalink / raw)
  To: Umesh Kalappa, Binutils

On 08/31/2017 04:53 AM, Umesh Kalappa wrote:
> Hi All ,
> 
> We build the test.so shared lib with "-z nodelete" and show below issue
> 
> open("/pkg/lib64/test.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> 
> stat("/pkg/lib64", 0x7ffff6a1aad0) = -1 ENOENT (No such file or directory)
> 
> writev(2, [{"I
> :"..., 33}, {"dl-open.c", 9}, {": ", 2}, {"583", 3}, {": ", 2},
> {"_dl_open", 8}, {": ", 2}, {"Assertion `", 11},
> {"_dl_debug_initialize (0, args.ns"..., 61}, {"' failed!\n", 10}], 10)
> = 141
> 
> 
> if we remove  "-z nodelete" option in the building the lib(test.so)
> ,ld.so able to load the lib .
> 
> 
> Any suggestions here ,why ld.so failed to load with "-z nodelete" ?

This is a dynamic loader issue. Please email libc-help@sourceware.org.

You will need to explain exactly what you are trying to do.

Providing LD_DEBUG=all output is very helpful e.g. LD_DEBUG=all ./a.out

-- 
Cheers,
Carlos.

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

end of thread, other threads:[~2017-08-31 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-31  9:53 Inconsistency detected by ld.so Umesh Kalappa
2017-08-31 13:45 ` Carlos O'Donell

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).