From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94603 invoked by alias); 31 Aug 2017 13:45:01 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 94593 invoked by uid 89); 31 Aug 2017 13:45:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f178.google.com Received: from mail-qt0-f178.google.com (HELO mail-qt0-f178.google.com) (209.85.216.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 Aug 2017 13:44:50 +0000 Received: by mail-qt0-f178.google.com with SMTP id u11so3060271qtu.1 for ; Thu, 31 Aug 2017 06:44:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=lor4Oqrsl5dn48lqvdENiYnnHlsn+bpUdgHudYcJ2aU=; b=W94WmwszUFUL9GOpWOBR0NmxiBrUFrAD+2/P6547TSoIofqbOdWjA6yGTaEZcusPLf U4quifRU595NcUvcNxqJO2DDRbHr250aJxHAgi52NDv1hxK/dvttV5WaBE4hIxgwSTjx cNABEefShKD/kr6J2TR4ih0qSXpcYNNoFFE+RySyXOSZVLnzAxeCkyP4IxWXBDC6jwlQ 4kcyJxFttiz5Va+ToCZW++5mZpdmYnb7o56p2YjOx4ye61Y3UM/+eoR/P8hAK5Cuz6K+ pQvtccLd0FI87XhMdLA/jg4KwRTlabdY7JMgxx6LGwgT4vi/mPoH9SKfqDg027GRCFJN KrSQ== X-Gm-Message-State: AHPjjUjLG9VtT3PcVq2/m6n6EwgBFEcqwuscn6X7XJyEPXXjD4dVaNzr YtoWTHqIFXC0KBqRIKRxzQ== X-Google-Smtp-Source: ADKCNb5pBYZ5xYxuceaPyEfS2TPlSqromLJ0Of9iZI3PPjBV2r8iUsHeJdfqmk/2Dt+6eE0rpwDccw== X-Received: by 10.200.11.73 with SMTP id m9mr7860838qti.229.1504187088617; Thu, 31 Aug 2017 06:44:48 -0700 (PDT) Received: from [192.168.222.10] ([199.204.71.66]) by smtp.gmail.com with ESMTPSA id o79sm5367219qka.3.2017.08.31.06.44.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Aug 2017 06:44:47 -0700 (PDT) Subject: Re: Inconsistency detected by ld.so To: Umesh Kalappa , Binutils References: From: Carlos O'Donell Message-ID: <1de67e10-99b2-f278-3822-0586a26f8a18@redhat.com> Date: Thu, 31 Aug 2017 13:45:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00369.txt.bz2 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.